What does 'double' mean ? (ex: double x=3.14) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does 'double' mean ? (ex: double x=3.14)

.

2nd Jul 2017, 2:59 PM
oH MaGiiiq
oH MaGiiiq - avatar
5 Answers
+ 3
float is represented in 32 bits, with 1 sign bit, 8 bits of exponent, and 23 bits of the significand (or what follows from a scientific-notation number: 2.33728*1012; 33728 is the significand). double is represented in 64 bits, with 1 sign bit, 11 bits of exponent, and 52 bits of significand. basically double is more precise than float taken from https://cheeze.club/oy74
2nd Jul 2017, 3:08 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 1
float and double are both numerical data types that include decimal. The difference between the two is float holds less numbers after the decimal than double does. But both are arguably the same.
2nd Jul 2017, 3:06 PM
Amado Marquez
Amado Marquez - avatar
0
Double is a data type to store values with decimal points. values like 3.14, 2.5 etc
2nd Jul 2017, 3:01 PM
Salekin
Salekin - avatar
0
and what about float ?
2nd Jul 2017, 3:02 PM
oH MaGiiiq
oH MaGiiiq - avatar
0
ha ok thanks ;)
2nd Jul 2017, 3:07 PM
oH MaGiiiq
oH MaGiiiq - avatar