+ 1

What s yhe difference between int and float?

8th Mar 2017, 9:51 PM
Angist
2 Antworten
+ 2
an int can only hold whole numbers like 1, 5 or 38 but a float can hold numbers with fractional parts like 1.5, 5.6709 or 100.87
8th Mar 2017, 9:58 PM
Shane
+ 1
take it this way: int holds whole numbers while float hold decimals ...or maybe when you divide.Example: 3/4=4.0 ; 4+1.65=5.65 always remember in floats a decimal point must be involved
15th Mar 2017, 11:14 PM
Ikoawaji Awajioyem
Ikoawaji Awajioyem - avatar