Files
solidity/docs
Aiman Baharna 392b1872b3 docs: Disallow decimal literals with trailing dots
Currently the documentation suggests that a decimal literal can omit the
fractional part [1]:

> Decimal fractional literals are formed by a `.` with at least one
> number on one side. Examples include `1.`, `.1` and `1.3`.

However, commit ac68710 (May 30, 2018) disallowed trailing dots that are
not followed by a number [2].

Using decimal literals of the form `1.` will actually result in a
`ParserError` and so the docs should no longer recommend this form.

[1] https://docs.soliditylang.org/en/v0.8.15/types.html#rational-and-integer-literals
[2] https://github.com/ethereum/solidity/commit/ac6871078940f0ae4a47380091fc46ed46a63d0a
2022-06-22 17:19:12 +01:00
..
2022-06-19 11:56:03 +05:30
2021-12-13 11:36:07 +01:00
2022-06-14 18:27:52 +02:00
2021-07-15 10:13:30 +02:00
2022-03-14 08:03:10 -07:00
2021-03-30 23:04:32 +02:00
2022-03-07 13:05:00 +01:00
2015-12-07 22:35:51 +01:00