JavaScript Number Reference Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report JavaScript Numbers are always stored in double-precision 64-bit binary format IEEE 754. The types of number literals You can use decimal, binary, octal, and hexadecimal. Syntax: Number(object) JavaScript function func() { // Original string let a = true; let value = Number(a); console.log(value); } func(); Output 1 The complete list of JavaScript Numbers is listed below: JavaScript Number Constructor: In JavaScript, a constructor gets called when an object is created using the new keyword. ConstructorDescriptionExampleNumber()Returns the number format for any type of javascript variable. Try JavaScript Number Properties: A JavaScript property is a member of an object that associates a key with a value. There are two types of Number properties in JavaScript. Static Property: A static property is a property that has the same value for the entire class.Static PropertiesDescriptionExampleEPSILONShows the difference between 1 and the smallest floating point number which is greater than 1. Try MAX_SAFE_INTEGERRepresents the maximum safe integer. Try MAX_VALUERepresent maximum numeric values. Try MIN_SAFE_INTEGERRepresents the minimum safe integer. Try MIN_VALUERepresent minimum numeric values. Try NaNRepresents a value that is not a valid number. Try NEGATIVE_INFINITYRepresents the largest negative value i.e negative infinity. Try POSITIVE_INFINITYRepresents the largest positive value i.e positive infinity. Try Instance Property: An instance property is a property that has a new copy for every new instance of the class. Instance PropertiesDescriptionExampleconstructorReturn the number constructor function for the object. Try JavaScript Number Methods: JavaScript methods are the actions that can be performed on objects. There are types of Number methods in JavaScript. Static Method: If the method is called using the Number class itself then it is called a static method.Static MethodsDescriptionExampleisNaN()Determine whether the passed value is NaN(Not a Number) and is of the type “Number”. Try isFinite()Check whether the passed value is a finite number or not. Try isInteger()Returns true if the passed value is an integer, otherwise false. Try isSafeInteger()Check the provided value is a number that is a safe integer. Try parseFloat()Accept the string and convert it into a floating-point number. Try parseInt()Manipulate numbers whether it is negative or positive. Try Instance Method: If the method is called on an instance of a number then it is called an instance method. Instance MethodsDescriptionExampletoExponential()Returns a string representing the Number object in exponential notation. Try toFixed()Format a number using fixed-point notation. Try toLocaleString()Converts a number into a string, using a local language format. Try toPrecision()Format a number to a specific precision or length. Try toString()Return a string representing the specified Number object. Try valueOf()Return the primitive value of a number. Try Comment K kartik Follow Improve K kartik Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Numbers Explore JavaScript BasicsIntroduction to JavaScript4 min readVariables and Datatypes in JavaScript6 min readJavaScript Operators5 min readControl Statements in JavaScript4 min readArray & StringJavaScript Arrays7 min readJavaScript Array Methods7 min readJavaScript Strings5 min readJavaScript String Methods9 min readFunction & ObjectFunctions in JavaScript5 min readJavaScript Function Expression3 min readFunction Overloading in JavaScript4 min readObjects in JavaScript4 min readJavaScript Object Constructors4 min readOOPObject Oriented Programming in JavaScript3 min readClasses and Objects in JavaScript4 min readWhat Are Access Modifiers In JavaScript ?5 min readJavaScript Constructor Method7 min readAsynchronous JavaScriptAsynchronous JavaScript2 min readJavaScript Callbacks4 min readJavaScript Promise4 min readEvent Loop in JavaScript4 min readAsync and Await in JavaScript2 min readException HandlingJavascript Error and Exceptional Handling6 min readJavaScript Errors Throw and Try to Catch2 min readHow to create custom errors in JavaScript ?2 min readJavaScript TypeError - Invalid Array.prototype.sort argument1 min readDOMHTML DOM (Document Object Model)9 min readHow to select DOM Elements in JavaScript ?3 min readJavaScript Custom Events4 min readJavaScript addEventListener() with Examples9 min readAdvanced TopicsClosure in JavaScript4 min readJavaScript Hoisting6 min readScope of Variables in JavaScript3 min readJavaScript Higher Order Functions7 min readDebugging in JavaScript4 min read Like