+ 12

Whar is an integer?

1st May 2017, 12:22 PM
David Gedalia Ordman
David Gedalia Ordman - avatar
8 ответов
+ 13
#pretty much just a number print(int("4")) #int() can convert a string to a 'number'/integer type. string numbers and integer numbers act differently
1st May 2017, 12:32 PM
Ahri Fox
Ahri Fox - avatar
+ 17
Whole numbers.
1st May 2017, 12:33 PM
Hatsy Rei
Hatsy Rei - avatar
+ 6
thanks
1st May 2017, 12:34 PM
David Gedalia Ordman
David Gedalia Ordman - avatar
+ 6
tx everyone
7th May 2017, 3:09 PM
David Gedalia Ordman
David Gedalia Ordman - avatar
+ 4
a data type for a variable(s) which allows them to store a single whole number as their value. or simply, whole numbers
2nd May 2017, 4:30 AM
DeleteThisAccount
+ 2
Integer(s) are whole numbers. 123, 213, -23 are considered integers while 1.2, 24433.7, and -60.3, are not considered integers because they have a decimal point.
2nd May 2017, 12:28 AM
Alexandru Barna
Alexandru Barna - avatar
+ 2
To put it simply in layman terms, integers are numbers which can be represented without the use of the decimal point '.' without any loss of accuracy. They are numbers which comprise of positive as well as negative whole numbers.
7th May 2017, 3:08 PM
Tushar Jain
Tushar Jain - avatar
+ 1
any number without decimal is called integerand with decimal called float
14th May 2017, 4:47 PM
MAYANK VERMA
MAYANK VERMA - avatar