How can I represent floating point numbers given in hexadecimal form? For example,
60123,124;
& lt; Sign & gt; 0x1 & Lt; Mantissa & gt; P ± & lt; Exponent & gt;
& gt; & Gt; & Gt; (1.2) .hex () '0x1.3333333333333p + 0' & gt; & Gt; & Gt; (1125.2) .hex () '0x1.194cccccccccccdp + 10' & gt; & Gt; & Gt; (7e85) .hex () '0x1.204362b6da56fp + 285' & gt; & Gt; & Gt; (5e-3) .hex () '0x1.47ae147ae147bp-8' & gt; & Gt; & Gt; (-8.) Hex () '-0x1.0000000000000p + 3' & gt; & Gt; & Gt; (60123.124) .hex () '0x1.d5b63f7ced917p + 15'
Comments
Post a Comment