- or download this
perl -le 'print sprintf("%6.1f: ", $_),
reverse(split //,
unpack("b*", pack("F", $_)))
for map {eval} @ARGV'
- or download this
33.3 33.4 '33.3+33.3' '33.4+33.3' '33.3+33.3+33.4' '33.4+33.3+33.3'
- or download this
33.3:0100000001000000101001100110011001100110011001100110011001100110
33.4:0100000001000000101100110011001100110011001100110011001100110011
...
66.7:0100000001010000101011001100110011001100110011001100110011001100
100.0:0100000001011001000000000000000000000000000000000000000000000000
100.0:0100000001011000111111111111111111111111111111111111111111111111
- or download this
33.3 is represented as 2^5 times
B1.0000101001100110011001100110011001100110011001100110
...
B1.1001000000000000000000000000000000000000000000000000
100.0 (not quite) is represented as 2^6 times
B1.1000111111111111111111111111111111111111111111111111
- or download this
33.3 + 33.3 is then 2^5 times:
1.0000101001100110011001100110011001100110011001100110
...
Now, smashing that into a double results in 2^6 times:
1.0000101011001100110011001100110011001100110011001100
- or download this
66.6 + 33.4 is now 2^6 times:
1.0000101001100110011001100110011001100110011001100110
...
+ 0.1000010100110011001100110011001100110011001100110011
---------------------------------------------------------
1.1000111111111111111111111111111111111111111111111111