Throw on division by zero.

This commit is contained in:
chriseth
2016-08-17 11:27:15 +02:00
parent e4578982c6
commit e7084d9e16
3 changed files with 33 additions and 3 deletions
+2
View File
@@ -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: