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:
chriseth 2017-06-16 16:52:46 +02:00 committed by GitHub
commit e0b9589e5a

View File

@ -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.