According to something I read somewhere. The ZX81 floating routines did incorperate some unique math: (2^32) - ((2^32)-1) did not return 1 And the group of Cambridge mathamaticians that wrote the ROM turned out to be one man. "ZX81 ROM Assembly Listing" https://www.tablix.org/~avian/spectrum/rom/zx81.htm
I just tried it on the ZX81 online emulator: http://www.zx81stuff.org.uk/zx81/jtyone.html You have to type the following sequence of keys: P [Shift]I 2 [Shift]H 3 2 [Shift]O - [Shift]I [Shift]I 2 [Shift]H 3 2 [Shift]O - 1 [Shift]O Enter which should appear as: PRINT (2**32)-((2**32)-1) It prints 0 which is not the expected answer! (The 0/0 at the bottom of the screeen is an OK message, the answer is printed in the to…
In [1]: 2.0**64 - (2.0**64-1.0)
Out[1]: 0.0
Thats how floats behave like with operands that differ greatly in magnitude. Also this In [2]: 2.0**64 == (2.0**64 - 1.0)
Out[2]: True