From 07981cd3f582b44ff4fc4f50da49feb7b46caf08 Mon Sep 17 00:00:00 2001 From: DanSLuong Date: Thu, 23 May 2019 22:10:03 -0500 Subject: [PATCH] Fix(guide): Edited formatting (#32583) * Fix(guide): Edited formatting * Update index.md --- .../python/data-structures/floating-point-numbers/index.md | 4 ++++ 1 file changed, 4 insertions(+) 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 0a193bbf95..6ad2dc0d6d 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: