0
what is float?
what is a float i don't get the description of the tutorial....
2 Answers
+ 2
Floats store floating-point numbers.
A integer can only hold whole numbers (like 3, 5 or -12), with float you can store numbers like 1.4, -.87 or 1234e-2
Double works the same as float but is twice as precise (higher accuracy).
0
float is one among the datatypes, which only stores the decimalnumber(floting value)s.
eg: 3.5,0.97
its value ranges from 3.4e-38 to 3.4e+38