diff options
author | chriseth <c@ethdev.com> | 2016-08-12 22:50:37 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-08-17 17:27:15 +0800 |
commit | e7084d9e16d0b370cab29d1f9ba08f07844b55f5 (patch) | |
tree | 2458f2cce57410fd6a8e5eb38d5792a48a8b8b9c /docs | |
parent | e4578982c6e1a39ca3457ab1844be37b500dedda (diff) | |
download | dexon-solidity-e7084d9e16d0b370cab29d1f9ba08f07844b55f5.tar dexon-solidity-e7084d9e16d0b370cab29d1f9ba08f07844b55f5.tar.gz dexon-solidity-e7084d9e16d0b370cab29d1f9ba08f07844b55f5.tar.bz2 dexon-solidity-e7084d9e16d0b370cab29d1f9ba08f07844b55f5.tar.lz dexon-solidity-e7084d9e16d0b370cab29d1f9ba08f07844b55f5.tar.xz dexon-solidity-e7084d9e16d0b370cab29d1f9ba08f07844b55f5.tar.zst dexon-solidity-e7084d9e16d0b370cab29d1f9ba08f07844b55f5.zip |
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: |