+ 1
What s yhe difference between int and float?
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
+ 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