mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #13191 from aiman/doc-decimal-literal-trailing-dots
docs: Disallow decimal literals with trailing dots
This commit is contained in:
commit
046423f272
@ -448,8 +448,8 @@ Integer literals are formed from a sequence of digits 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 invalid.
|
||||
|
||||
Decimal fractional literals are formed by a ``.`` with at least one number on
|
||||
one side. Examples include ``1.``, ``.1`` and ``1.3``.
|
||||
Decimal fractional literals are formed by a ``.`` with at least one number after the decimal point.
|
||||
Examples include ``.1`` and ``1.3`` (but not ``1.``).
|
||||
|
||||
Scientific notation in the form of ``2e10`` is also supported, where the
|
||||
mantissa can be fractional but the exponent has to be an integer.
|
||||
|
Loading…
Reference in New Issue
Block a user