minSafeInteger constant

  1. @Since.new("3.15")
int const minSafeInteger

The smallest integer that a double value can uniquely represent.

The value, -(253 - 1) or -9007199254740991, is the smallest integer where int.toDouble does not represent more than one integer. All double values numerically below -9007199254740991.0 represent a range of more than one integer.

Corresponds to Number.MIN_SAFE_INTEGER in JavaScript.

Implementation

@Since("3.15")
static const int minSafeInteger = -maxSafeInteger;