Re:Adding BigInts to V8
by partycoder on Wednesday May 02, 2018 @11:03PM
(#16983058)
Thanks for pointing it out.
A more popular definition is "the smallest number that yields a result different to 1 when added to 1".
Look out - I just now tested those two extra ideas which I added for equality testing and found they dont work.
This version of adding a rounding value seems to though:
( a-b + rounder ) == rounder
My apologies, be careful out there :)
That kind of equality test should be:
In practice I judge the scale of the quantization noise that may accrue and compare the difference to it.It may also be possible to kind of caste precision away by adding a trick value. eg.
If a and b are positive, that is somewhat similar to: