📅  最后修改于: 2022-03-11 15:04:05.595000             🧑  作者: Mango
// Within this limit we can do our calculations safely with precision
// After MAX_SAFE_INTEGER limit, use BigInt value type.
console.log(Number.MAX_SAFE_INTEGER); // (2^53 - 1) => 9007199254740991
console.log(Number.MIN_SAFE_INTEGER); // (-(2^53 - 1)) => -9007199254740991