3 ms·
> before getting actual integers Javascript has always had "actual integers". As long as you stay within Number.MIN_SAFE_INTEGER...Number.MAX_SAFE_INTEGER (-90
by ThrowMeDown01 8y ago
> before getting actual integers
Javascript has always had "actual integers". As long as you stay within Number.MIN_SAFE_INTEGER...Number.MAX_SAFE_INTEGER (-9007199254740991..9007199254740991) the internal representation is an integer representation.
http://2ality.com/2013/10/safe-integers.html http://2ality.com/2013/10/safe-integers.html
- deleted 8y ago[deleted]
- plopz 8y agoTo get the operators to actually work correctly you need to use typed arrays however. For example let a = new Uint32Array(3); a[0] = 5; a[1] = 2; a[2] = a[0]/a[1]