Fandom

Python Wiki

Integer

43pages on
this wiki
Add New Page
Talk0 Share

Integer is a primitive data type.
Integers represent *uhm, yes* Integers. The range of this numbers is from -2^{31} until 2^{31} - 1 (the default range for integers on 32-Bit computers).
As Python has the automatic type-inference, it will interpret all numerics withought digits-after-the-comma as integers.

Casting Edit

To cast a numeric variable to an integer, type:

int(your_variable)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.