Difference between single precision and double precision
Answers
Answered by
1
Hey there!
Plzz mark it BRAINLIEST..plzz...
Single Precision is a 32-bit type; Double Precision is a 64-bit type. Accordingly, Doubles store a much broader range of values, and with much more precision.
The floating point format is comprised of a sign bit, exponent bits (which give you range) and fraction bits (which give you numerical precision).
32-bit floats have 1 sign, 8 exponent bits and 24 fraction bits, whereas 64-bit floats have 1 sign, 11 for exponent and 53 for fraction. (The first effective bit of fraction is always implied — that’s how they add up to 32 and 64 bits, respectively.With 3 extra exponent bits (from 8 to 11), Double’s maximum exponent is 8x that of Single, leading to much greater range. And with 29 extra bits of precision (from 24->53), Double is far more precise when representing problematic numbers such as 1/7 or Pi.
Plzz mark it BRAINLIEST..plzz...
Single Precision is a 32-bit type; Double Precision is a 64-bit type. Accordingly, Doubles store a much broader range of values, and with much more precision.
The floating point format is comprised of a sign bit, exponent bits (which give you range) and fraction bits (which give you numerical precision).
32-bit floats have 1 sign, 8 exponent bits and 24 fraction bits, whereas 64-bit floats have 1 sign, 11 for exponent and 53 for fraction. (The first effective bit of fraction is always implied — that’s how they add up to 32 and 64 bits, respectively.With 3 extra exponent bits (from 8 to 11), Double’s maximum exponent is 8x that of Single, leading to much greater range. And with 29 extra bits of precision (from 24->53), Double is far more precise when representing problematic numbers such as 1/7 or Pi.
Answered by
0
➡️Precision refers to the closeness of two or more measurements to each other.
➡️Using the example above, if you weigh a given substance five times, and get 3.2 kg each time, then your measurement is very precise.
➡️Precision is independent of accuracy.
Similar questions