http://www.newton-inc.com/dev/techinfo/qa/qa.htm
http://gemma.apple.com/dev/techsupport/insidemac/PPCNumerics/PPCNumerics-2.html
The Newton floating point environment is not as rich in features as the PowerPC environment, and the PowerPC numerics document is only mentioned as a useful resource for understanding floating point issues. It in no way documents API or features of the Newton floating point environment.1001.1100001
1.0011100001 * 2^3
3+0x3FF = 0x402 = 100 0000 0010
0 10000000010 0011100001000000000000000000000000000000000000000000
0x4023840000000000
StrHexDump(9+97/128, 16) -> "4023840000000000"
real
. In addition to the NewtonScript floating point literal syntax, you can use the compile time function MakeBinaryFromHex
to construct real numbers, and you must use this style for custom NaN values. The most recent platform files for Newton 2.0 and Newton 2.1 provide constants for negative zero (kNegativeZero
), positive and negative infinity (kInfinity
, kNegativeInfinity
), and a canonical NaN (kNaN
). MakeBinaryFromHex("4023840000000000", 'real) -> 9.7578125 // = 9+97/128