I have looked at NewFloatMgr and it shows a double as:
Nibble Positions:
12 34 56 78 etc
0x80 00 00 00 0x00 00 00 00 sign
0x7F F0 00 00 0x00 00 00 00 exp offset by 1023
0x00 0F FF FF 0xFF FF FF FF significand with implied 1
So, I would expect the significand for a double to change
nibbles 4,5,6,7,8,etc (as shown above).
I saved the following doubles and looked at the raw data
and it did not seem to match the above format. Keep in
mind that uses these numbers produce the correct results
so I know they are stored correctly as doubles.
1 0x3F F0 00 00 0x00 00 00 00
2 0x40 00 00 00 0x00 00 00 00
3 0x40 08 00 00 0x00 00 00 00
4 0x40 10 00 00 0x00 00 00 00
5 0x40 14 00 00 0x00 00 00 00
8 0x40 20 00 00 0x00 00 00 00
123 0x40 5E C0 00 0x00 00 00 00
So, how is it that if sign is in nibble 1 and exp is
in nibble 1,2,3 that the significand also uses nibble
2,3,4,5,6,etc. It seems that there is some overlap
of significand and the exp nibbles (2). And I know this
cannot be the case.
What am I missing here?
----------------------------------------------------
Shoot-to-Win
Protect the 2nd Amendment
----------------------------------------------------