Python Integers

From NovaOrdis Knowledge Base
Revision as of 01:27, 24 June 2022 by Ovidiu (talk | contribs) (→‎Internal)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

TODO

Overview

Whole numbers, expressed as numeric constants that do not contain a decimal point.

x = -20
type(x)
<class 'int'>

In Python 2, an integer was limited to 32 bits. In Python 3, integers can be any size:

>>> googol = 10**100
>>> googol
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Bases

IPy Bases Page 26.

Organizatorium