Number
About 1 min
Number
Modules
Tips
Number
constructor support binary and octal literals, example:Number("0b1010101"); // => 85 Number("0o7654321"); // => 2054353
Types
interface Number {
toExponential(digits: number): string;
toFixed(digits: number): string;
toPrecision(precision: number): string;
EPSILON: number;
MAX_SAFE_INTEGER: number;
MIN_SAFE_INTEGER: number;
}
interface numberConstructor {
new (value: any): number;
isFinite(number: any): boolean;
isNaN(number: any): boolean;
isInteger(number: any): boolean;
isSafeInteger(number: any): boolean;
parseFloat(string: string): number;
/** @param radix @default 10 */
parseInt(string: string, radix?: number): number;
}
function parseFloat(string: string): number;
/** @param radix @default 10 */
function parseInt(string: string, radix?: number): number;
Entry points
core-js(-pure)/es|stable|actual|full/number
core-js(-pure)/es|stable|actual|full/number/constructor
core-js(-pure)/es|stable|actual|full/number/is-finite
core-js(-pure)/es|stable|actual|full/number/is-nan
core-js(-pure)/es|stable|actual|full/number/is-integer
core-js(-pure)/es|stable|actual|full/number/is-safe-integer
core-js(-pure)/es|stable|actual|full/number/parse-float
core-js(-pure)/es|stable|actual|full/number/parse-int
core-js(-pure)/es|stable|actual|full/number/epsilon
core-js(-pure)/es|stable|actual|full/number/max-safe-integer
core-js(-pure)/es|stable|actual|full/number/min-safe-integer
core-js(-pure)/es|stable|actual|full/number(/virtual)/to-exponential
core-js(-pure)/es|stable|actual|full/number(/virtual)/to-fixed
core-js(-pure)/es|stable|actual|full/number(/virtual)/to-precision
core-js(-pure)/es|stable|actual|full/parse-float
core-js(-pure)/es|stable|actual|full/parse-int