0

what is float?

what is a float i don't get the description of the tutorial....

6th Jan 2017, 1:34 AM
Alice Lee
Alice Lee - avatar
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).
6th Jan 2017, 1:41 AM
Robobrine
Robobrine - avatar
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
6th Jan 2017, 2:50 AM
vamshi datar