Closed swairshah closed 11 years ago
Using two points at distance 2*Number.MIN_VALUE won't work, as a +/- Number.MIN_VALUE = a
2*Number.MIN_VALUE
a +/- Number.MIN_VALUE = a
This commit uses 1e-15 instead of Number.MIN_VALUE.
1e-15
Number.MIN_VALUE
That's the highest precision we can get. without using an external library in javascript (possible option is to use bignum lib)
You're right; forgot about a + Number.MIN_VALUE = a.
a + Number.MIN_VALUE = a
Using two points at distance
2*Number.MIN_VALUE
won't work, asa +/- Number.MIN_VALUE = a
This commit uses
1e-15
instead ofNumber.MIN_VALUE
.That's the highest precision we can get. without using an external library in javascript (possible option is to use bignum lib)