diff options
author | chriseth <chris@ethereum.org> | 2016-08-17 22:43:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 22:43:13 +0800 |
commit | d6579a0a5f99425eae95329b77e07ea072122924 (patch) | |
tree | 210f3cf17b58c674060d834c6ae2dfe3ec3cd17a /docs | |
parent | 6baa982a6a95189af8199e719e62314b1073aa62 (diff) | |
parent | 34f9a59f18dcf8601d910aef599b2589dc080e2d (diff) | |
download | dexon-solidity-d6579a0a5f99425eae95329b77e07ea072122924.tar dexon-solidity-d6579a0a5f99425eae95329b77e07ea072122924.tar.gz dexon-solidity-d6579a0a5f99425eae95329b77e07ea072122924.tar.bz2 dexon-solidity-d6579a0a5f99425eae95329b77e07ea072122924.tar.lz dexon-solidity-d6579a0a5f99425eae95329b77e07ea072122924.tar.xz dexon-solidity-d6579a0a5f99425eae95329b77e07ea072122924.tar.zst dexon-solidity-d6579a0a5f99425eae95329b77e07ea072122924.zip |
Merge pull request #888 from chriseth/throwOnDivZero
Throw on division by zero.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/types.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/types.rst b/docs/types.rst index 31f6b53d..d6445ed9 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -57,6 +57,8 @@ Operators: Division always truncates (it just maps 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 an exception. + .. index:: address, balance, send, call, callcode, delegatecall .. _address: |