diff options
author | chriseth <c@ethdev.com> | 2017-03-07 19:34:32 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-03-07 19:34:32 +0800 |
commit | bb06569dc66adbe853bf79273f2eff04d8e36ab6 (patch) | |
tree | 61d34de9f255d7ca7a2155063de5dd576f6e450b /docs/types.rst | |
parent | 573b885337aca75a025c08eea80bb109041e669e (diff) | |
download | dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.tar.gz dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.tar.zst dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.zip |
Disallow octal literals.
Diffstat (limited to 'docs/types.rst')
-rw-r--r-- | docs/types.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/types.rst b/docs/types.rst index f7d1d54f..f89a8ee5 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -197,10 +197,9 @@ Rational and Integer Literals Integer literals are formed from a sequence of numbers in the range 0-9. They are interpreted as decimals. For example, ``69`` means sixty nine. -Octal literals do not exist in Solidity and leading zeros are ignored. -For example, ``0100`` means one hundred. +Octal literals do not exist in Solidity and leading zeros are invalid. -Decimal literals are formed by a ``.`` with at least one number on +Decimal fraction literals are formed by a ``.`` with at least one number on one side. Examples include ``1.``, ``.1`` and ``1.3``. Number literal expressions retain arbitrary precision until they are converted to a non-literal type (i.e. by |