Exact textual representation of an IEEE "double"

Posted by CyberShadow on Stack Overflow See other posts from Stack Overflow or by CyberShadow
Published on 2010-03-19T21:48:10Z Indexed on 2010/03/19 21:51 UTC
Read the original article Hit count: 275

I need to represent an IEEE 754-1985 double (64-bit) floating point number in a human-readable textual form, with the condition that the textual form can be parsed back into exactly the same (bit-wise) number.

Is this possible/practical to do without just printing the raw bytes? If yes, code to do this would be much appreciated.

© Stack Overflow or respective owner

Related posts about ieee-754

Related posts about floating-point