diff --git a/guide/english/python/data-structures/floating-point-numbers/index.md b/guide/english/python/data-structures/floating-point-numbers/index.md index 0a193bbf95294d..6ad2dc0d6dcecf 100644 --- a/guide/english/python/data-structures/floating-point-numbers/index.md +++ b/guide/english/python/data-structures/floating-point-numbers/index.md @@ -1,10 +1,13 @@ --- title: Python Floating Point Numbers --- +# Python Floating Point Numbers + Some general information about floating point numbers and how they work in Python, can be found here. Nearly all implementations of Python follow the IEEE 754 specification: Standard for Binary Floating-Point Arithmetic. More information found on the IEEE site. +## Float objects using floating point literals Float objects can be created using using floating point literals: >>> 3.14 @@ -47,6 +50,7 @@ Note that leading and trailing zero(s) are valid for floating point literals >>> 001e0010 # Same as 1e10 10000000000.0 +## Float objects using float constructors The `float` constructor is another way to create `float` objects. Creating `float` objects with floating point literals is preferred when possible: