Number API
Checking number types, converting, and formatting numerical values.
Number(x) tries to cast x to a number. Number provides methods like Number.isFinite and Number.isInteger to validate numerical inputs. Conversion methods such as parseFloat and parseInt transform strings into numbers, while the Number constructor converts various types. Formatting methods represent numbers in exponential or fixed-point notation, ensuring accurate numerical presentation across locales. Constants like MAX_VALUE and MIN_VALUE define numerical limits, and MAX_SAFE_INTEGER and MIN_SAFE_INTEGER are used for safe integer operations. Special values such as POSITIVE_INFINITY, NEGATIVE_INFINITY, and NaN handle overflow and invalid operations.