From e7084d9e16d0b370cab29d1f9ba08f07844b55f5 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 12 Aug 2016 16:50:37 +0200 Subject: Throw on division by zero. --- docs/types.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') 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` (or literal expressions). +Division by zero and modulus with zero throws an exception. + .. index:: address, balance, send, call, callcode, delegatecall .. _address: -- cgit