aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-08-17 22:43:13 +0800
committerGitHub <noreply@github.com>2016-08-17 22:43:13 +0800
commitd6579a0a5f99425eae95329b77e07ea072122924 (patch)
tree210f3cf17b58c674060d834c6ae2dfe3ec3cd17a /docs
parent6baa982a6a95189af8199e719e62314b1073aa62 (diff)
parent34f9a59f18dcf8601d910aef599b2589dc080e2d (diff)
downloaddexon-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.rst2
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: