+ 2

What is a Floating point number?

19th Jun 2017, 6:00 PM
Ranym Jbali
Ranym Jbali - avatar
3 odpowiedzi
+ 3
A floating point number is simply a real number such as 52.73 or 3.14159265, unlike an integer which is a whole number like 13. They are indispensible if you need to perform arithmetic calculations such as fractions or to measure variables that integers alone would not suffice, such as the speed of an object. There are two parts to a float, the range which is left of the point, and the precision which is right of the point. Depending on how much range and precision you need, you can specifically allocate more memory in some languages with various declarations such as "double".
19th Jun 2017, 6:16 PM
Dillon Schultz
Dillon Schultz - avatar
0
thank you
19th Jun 2017, 8:33 PM
Ranym Jbali
Ranym Jbali - avatar
0
A number which includes decimal in it or a fractional no. Is called floating point. Number
20th Jun 2017, 12:44 PM
Arvind Bharadwaj
Arvind Bharadwaj - avatar