0

What is float?

23rd Jan 2018, 12:53 PM
Vasu Mittal
Vasu Mittal - avatar
2 Answers
+ 5
It is a decimal number. So is double, but double can hold more precise decimals and takes more space.
23rd Jan 2018, 1:08 PM
Jacob Pembleton
Jacob Pembleton - avatar
+ 2
in other words, float is a data type that occupies four bytes of memory to represent a single-precision floating point number.
23rd Jan 2018, 5:32 PM
Sujith k sukumar
Sujith k sukumar - avatar