+ 1
What does 'double' mean ? (ex: double x=3.14)
.
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
+ 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.
0
Double is a data type to store values with decimal points.
values like 3.14, 2.5 etc
0
and what about float ?
0
ha ok thanks ;)