Search code examples
cfloating-pointprintfdouble-precision

How to translate the value of %a given by printf?


What is the value of 0x1.921fb82c2bd7fp+1 in a human readable presentation? I got this value by printf using %a.


Solution

  • The mantissa is hexadecimal and the exponent is a decimal value representing the power of 2 the mantissa is scaled by.