noislabs / nois

The Nois standard library
10 stars 4 forks source link

Let int_in_range support full safe integer range in JavaScript #18

Closed webmaster128 closed 1 year ago

webmaster128 commented 1 year ago

Now supports also negative numbers and numbers outside of the 32 bit range.

[Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER] is roughly 53 bit.