BigInt in javascript
So i was working on some big number within thingworx and got some unexpected results.
var BIGINT_OUT_OF_BOUNDS = Number("-9223372036854775805");
result = BIGINT_OUT_OF_BOUNDS;
This will result in -9223372036854776000
If you read the javascript documentation this is understandable.
So i did:
var BIGINT_OUT_OF_BOUNDS = BigInt("-9223372036854775805");
result = BIGINT_OUT_OF_BOUNDS;
This will result in an error: Error executing service BigInt. Message :: ReferenceError: "BigInt" is not defined. - See Script Error Log for more details.
Witch is understandable because thingworx uses Rhino 1.7.11. And BigInt is only implemented from Rhino version 1.7.14.
I must be missing something.
So my question is, how am i supposed to work with big numbers?

