mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
[3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012)
(cherry picked from commit 1a0c7b9ba4
)
This commit is contained in:
parent
225cbee8d8
commit
a45d9051ed
100 changed files with 238 additions and 238 deletions
|
@ -869,7 +869,7 @@ How do I convert a string to a number?
|
|||
--------------------------------------
|
||||
|
||||
For integers, use the built-in :func:`int` type constructor, e.g. ``int('144')
|
||||
== 144``. Similarly, :func:`float` converts to floating-point,
|
||||
== 144``. Similarly, :func:`float` converts to a floating-point number,
|
||||
e.g. ``float('144') == 144.0``.
|
||||
|
||||
By default, these interpret the number as decimal, so that ``int('0144') ==
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue