From f90380cffd775e446cf01683a05adc10885f2980 Mon Sep 17 00:00:00 2001 From: DanSLuong Date: Tue, 30 Oct 2018 08:51:07 -0500 Subject: [PATCH 1/2] Fix(guide): Edited formatting --- .../python/data-structures/floating-point-numbers/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 7c36901f164185..d7369489052ea1 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 --- +# 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: @@ -105,4 +109,4 @@ The `float` constructor can also be used to make numeric representation of `NaN` >>> float('infinity') inf >>> float('-infinity') - -inf \ No newline at end of file + -inf From 5923bfe150afd61d93db780403e28f74375bcc4d Mon Sep 17 00:00:00 2001 From: The Coding Aviator <34807532+thecodingaviator@users.noreply.github.com> Date: Sat, 11 May 2019 21:57:45 +0530 Subject: [PATCH 2/2] Update index.md --- .../python/data-structures/floating-point-numbers/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d7369489052ea1..79447ddb120d4d 100644 --- a/guide/english/python/data-structures/floating-point-numbers/index.md +++ b/guide/english/python/data-structures/floating-point-numbers/index.md @@ -1,7 +1,7 @@ --- title: Python Floating Point Numbers --- -# Floating Point Numbers +# Python Floating Point Numbers Some general information about floating point numbers and how they work in Python, can be found here.