Solidity 0.4.0 arithmetic
Run original 0.4 syntax and keep typed results visible inline.
Solidity 0.4.0REPL mode
Why use this example
Use this pattern to confirm Solidity arithmetic and unit behavior before putting the same expression into a contract. The entry isolates solidity 0.4.0 arithmetic so its input, result, and state changes stay easy to compare.
Solidity to run
uint256 amount = 10
amount / 3
bool ready = amount > 5
readyWhat to expect
Solidity 0.4.0 evaluates the integer division as 3 and the comparison as true, with both typed values shown inline.
Continue the investigation
Change a value, add another expression, or open Inspect after the run. Accepted entries remain available to the next entry, and the clean replay keeps the complete result reproducible.
Read about writing Solidity Prototype Solidity behavior