mirror of
https://github.com/python/cpython.git
synced 2025-10-28 20:25:04 +00:00
gh-140065: Lexical analysis: Correct note about leading zeros in floating point numbers (GH-140066)
This commit is contained in:
parent
728d239e57
commit
1624c646b0
1 changed files with 2 additions and 2 deletions
|
|
@ -1308,8 +1308,8 @@ The parts are separated by a decimal point, ``.``::
|
||||||
2.71828
|
2.71828
|
||||||
4.0
|
4.0
|
||||||
|
|
||||||
Unlike in integer literals, leading zeros are allowed in the numeric parts.
|
Unlike in integer literals, leading zeros are allowed.
|
||||||
For example, ``077.010`` is legal, and denotes the same number as ``77.10``.
|
For example, ``077.010`` is legal, and denotes the same number as ``77.01``.
|
||||||
|
|
||||||
As in integer literals, single underscores may occur between digits to help
|
As in integer literals, single underscores may occur between digits to help
|
||||||
readability::
|
readability::
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue