mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2373 from jamesray1/patch-14
Changed to "is compiled" rather than "maps" to the DVM op code to avoid ambiguity
This commit is contained in:
commit
e0b9589e5a
@ -54,7 +54,7 @@ Operators:
|
||||
* Bit operators: ``&``, ``|``, ``^`` (bitwise exclusive or), ``~`` (bitwise negation)
|
||||
* Arithmetic operators: ``+``, ``-``, unary ``-``, unary ``+``, ``*``, ``/``, ``%`` (remainder), ``**`` (exponentiation), ``<<`` (left shift), ``>>`` (right shift)
|
||||
|
||||
Division always truncates (it just maps to the DIV opcode of the EVM), but it does not truncate if both
|
||||
Division always truncates (it just is compiled to the DIV opcode of the EVM), but it does not truncate if both
|
||||
operators are :ref:`literals<rational_literals>` (or literal expressions).
|
||||
|
||||
Division by zero and modulus with zero throws a runtime exception.
|
||||
|
Loading…
Reference in New Issue
Block a user