File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -437,14 +437,16 @@ an error. You can prepend (for integer types) or append (for bytesNN types) zero
437437Rational and Integer Literals
438438-----------------------------
439439
440- Integer literals are formed from a sequence of numbers in the range 0-9.
440+ Integer literals are formed from a sequence of digits in the range 0-9.
441441They are interpreted as decimals. For example, ``69 `` means sixty nine.
442442Octal literals do not exist in Solidity and leading zeros are invalid.
443443
444- Decimal fraction literals are formed by a ``. `` with at least one number on
444+ Decimal fractional literals are formed by a ``. `` with at least one number on
445445one side. Examples include ``1. ``, ``.1 `` and ``1.3 ``.
446446
447- Scientific notation is also supported, where the base can have fractions and the exponent cannot.
447+ Scientific notation in the form of ``2e10 `` is also supported, where the
448+ mantissa can be fractional but the eponent has to be integer.
449+ The literal ``MeE `` is equivalent to ``M * 10**E ``.
448450Examples include ``2e10 ``, ``-2e10 ``, ``2e-10 ``, ``2.5e1 ``.
449451
450452Underscores can be used to separate the digits of a numeric literal to aid readability.
You can’t perform that action at this time.
0 commit comments