The maximum safe value of an int.
final int maxSafeInteger = pow(2, safeIntegerBits - 1).toInt() - 1;