JavaScript Number
Number methods for numeric operations — toFixed, parseInt, isNaN, and more. This category documents 18 JavaScript number entries, and each page gives you the full syntax, the parameter list, the return value, a runnable example, time complexity, the TypeScript signature, and the mistakes developers most often make with that API. The entries are: Number.prototype.toFixed(), Number.prototype.toExponential(), Number.prototype.toPrecision(), Number.prototype.toString(), Number.isNaN(), Number.isFinite(), Number.isInteger(), Number.isSafeInteger(), Number.parseFloat(), Number.parseInt(), Number.prototype.valueOf(), Number.EPSILON, Number.MAX_VALUE, Number.MIN_VALUE, Number.POSITIVE_INFINITY, Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER, Number.prototype.toLocaleString(). For a structured walkthrough of the whole topic, read the Numbers guide. Not sure which method you need? Number.prototype.toFixed() and Number.prototype.toExponential() are the most commonly used starting points in this category. You can also search across every category from the search page or browse the complete A–Z index.