fix(guide): Edited the formatting for readability (#32574)

This commit is contained in:
DanSLuong
2018-12-18 04:20:19 -06:00
committed by Aditya
parent e9fc006878
commit 0afe892563

View File

@ -1,6 +1,7 @@
---
title: Python Integers
---
Integers are whole numbers with no decimal point. They include negative, zero, and positive numbers. The theoretical domain for integers in python is negative infinity to infinity. In practice, integer values are limited by the amount of available memory.
In Python 2, there was a distinction between **`int`**, numbers that fit in a 32 or 64 bit _C long_, and **`long`**, numbers limited by available memory. Python 3 unified the two types into just **`int`** (more info in <a href='https://www.python.org/dev/peps/pep-0237/' target='_blank' rel='nofollow'>PEP 237</a>).
@ -47,6 +48,7 @@ Note that leading 0's for non-zero integer literals are **not allowed**:
^
SyntaxError: invalid token
## `int` creation using constructors
The `int` <a href='https://docs.python.org/3/library/functions.html#int' target='_blank' rel='nofollow'>constructor</a> is another way to create _integer objects_.
class int(x=0)