What is a floating point number and what is double precision? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is a floating point number and what is double precision?

I am confused because it has no definitions defining what they mean by those two phrases.

6th Feb 2017, 3:32 AM
Jessica
Jessica - avatar
1 Answer
+ 7
Floating point number, more commonly known as a float, is a number which consist of a decimal point and decimal values. Double precision values, known as double, are decimal values which have the minimum precision of a float. In programming, double variables are used to store decimal values at a much more precise level compared to float (i.e. More numbers after the decimal point)
6th Feb 2017, 3:41 AM
Hatsy Rei
Hatsy Rei - avatar