jsSafeIntegerBound top-level constant

double const jsSafeIntegerBound

2^53 — the largest integer that JS Number (IEEE 754 double) can represent exactly. Beyond this, integer arithmetic silently loses precision. Used as the safe-integer bound on the JS runtime.

Implementation

const double jsSafeIntegerBound = 9007199254740992.0;