in reply to Re: Funny addition behaviour
in thread Funny addition behaviour
Assuming your perl uses the same size floating point numbers as mine, the first three hex digits encode the sign and exponent, and the last 13 hex digits encode the part of the mantissa after "1."perl -le 'print sprintf("%6.1f: ", $_), reverse(split /(..)/, unpack("H*", pack("F", $_))) for map {eval} @ARGV'
|
|---|