The Wayback Machine - https://web.archive.org/web/20240814091310/https://www.geeksforgeeks.org/javascript-number-min_value-property/
Open In App

JavaScript Number.MIN_VALUE Property

Last Updated : 13 Apr, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Number.MIN_VALUE is the smallest possible positive number representable in JavaScript within float precision. It does not represent the most negative number, instead of that, it possesses the value of the smallest positive number which is closest to 0.

Syntax:

Number.MIN_VALUE

Return Value: It has approximately a value of 5E-324(>0). But in practice, the more precise value of Number.MIN_VALUE in Node.js and browsers is 2^-1074.

Note: As MIN_VALUE is a static property of the Number class, we should always use it as Number.MIN_VALUE instead of using as a property of the object created from the Number class ( static properties always belong to the class, not to the objects). So, if we create a Number object and try to access the MIN_VALUE property of the object, it will return undefined.

Let us look at some examples to see how to use this property:

Example 1: This example shows the use of the MIN_VALUE property.

Javascript




let num=100;
console.log(Number.MIN_VALUE);
console.log("Check if it is greater than zero :",
            Number.MIN_VALUE>0);


Output:

5e-324
Check if it is greater than zero : true

Example 2: This example shows the use of the MIN_VALUE property.

Javascript




let num=100;
console.log(num.MIN_VALUE);


Output:

undefined

We have a complete list of Javascript Number methods, to check those please go through the JavaScript Number Complete Reference article.

Supported Browsers:

  • Chrome  1 and above
  • Edge 12 and above
  • Firefox 1 and above
  • Opera 3 and above
  • Safari 1 and above

We have a complete list of JavaScript Number constructor, properties, and methods list, to know more about the numbers please go through that article.



Similar Reads

JavaScript Number MAX_VALUE & MIN_VALUE Property
JavaScript Number.MAX_VALUE and Number.MIN_VALUE is used to represent maximum and minimum numeric values in javascript. Syntax: Number.MAX_VALUE Number.MIN_VALUE Return Type: Both Number.MAX_VALUE and Number.MIN_VALUE returns a numeric value. MAX_VALUE has a value of approximately 1.79E+308. The values are larger Number.MAX_VALUE are termed as Infi
1 min read
JavaScript Number constructor Property
JavaScript Number constructor Property is used to return the number constructor function for the object. The function which is returned by this property is just the reference to this function, not a number containing the function’s name. The JavaScript number constructor, string constructor, and boolean constructor return function Number() { [nativ
1 min read
JavaScript Number Positive_INFINITY Property
In javascript Number.POSITIVE_INFINITY represents the largest positive value i.e positive infinity. Actually the value of Number.POSITIVE_INFINITY is the same as the value of the global object's Infinity property. Syntax: It can be assigned to a variable in the following way. let a = Number.POSITIVE_INFINITY Return value: It returns the number Infi
2 min read
JavaScript Number NEGATIVE_INFINITY Property
In JavaScript, NEGATIVE_INFINITY is a property of a number object which represents negative infinity (-Infinity). It can be explained as a number that is lower than any other number. It is a Read-Only property. Syntax: NEGATIVE_INFINITY is a static property of the NUMBER object and hence is always used with reference to it Number.NEGATIVE_INFINITY
1 min read
JavaScript Number.MIN_SAFE_INTEGER Property
The JavaScript Number.MIN_SAFE_INTEGER is a constant number that represents the minimum safe integer. This constant has a value of (-(253 - 1)). Use Number.MIN_SAFE_INTEGER, as a property of a number object because it is a static property of a number. Syntax: Number.MIN_SAFE_INTEGER Return Value: Constant number. Example 1: Below example illustrate
1 min read
JavaScript Number MAX_SAFE_INTEGER Property
The JavaScript Number.MAX_SAFE_INTEGER is a constant number that represents the maximum safe integer. This constant has a value of (253 - 1). Here safe refers to the ability to represent integers and to compare them. Syntax: Number.MAX_SAFE_INTEGER Return Value: A constant number. Example 1: Below example illustrates the usage of Number.MAX_SAFE_IN
1 min read
JavaScript Number Prototype Property
Number object in JavaScript is used to manipulate numbers whether it is negative or positive. The JavaScript Number type represents the double (fractional values) type numbers. A number literal like 98 is not an integer value but a floating-point value. It maintains the precision of 17 decimal places. 1.8 * 10^308 is the largest value it can hold,
4 min read
JavaScript Number EPSILON Property
EPSILON property shows the difference between 1 and the smallest floating point number which is greater than 1. When we calculate the value of EPSILON property we found it as 2 to the power -52 (2^-52) which gives us a value of 2.2204460492503130808472633361816E-16. Syntax: Number.EPSILON Attribute: It is a non-writable property which means this pr
2 min read
JavaScript Number.MAX_VALUE Property
Number.MAX_VALUE represents the biggest possible numeric value of a positive number that can be represented in JavaScript. It is the maximum possible positive number representable in JavaScript within float precision. The values greater than Max_VALUE are represented as infinity. Syntax: Number.MAX_VALUEReturn Value: It possesses the value of the b
2 min read
JavaScript Number NaN Property
NaN stands for Not a Number. It's a special value in JavaScript that indicates something isn't a valid number. You can use it to check if a value is a number or not. There are two ways to assign a variable to NaN: either by performing a calculation that results in NaN, or by directly setting the variable to NaN. Syntax: let a = NaN // OR let a = Nu
2 min read
Javascript Program for Check whether all the rotations of a given number is greater than or equal to the given number or not
Given an integer x, the task is to find if every k-cycle shift on the element produces a number greater than or equal to the same element. A k-cyclic shift of an integer x is a function that removes the last k digits of x and inserts them in its beginning. For example, the k-cyclic shifts of 123 are 312 for k=1 and 231 for k=2. Print Yes if the giv
3 min read
How to disable scroll to change number in <input type="number"> field using JavaScript/jQuery?
Given an HTML document containing <input type = "number"> attribute and the task is to disable the mouse scroll wheel to change the number value using JavaScript/jQuery. Approach: Select the element.Add an event to that element which will call a function when scrolling starts.Make the element disabled on scrolling.Example 1: This example impl
2 min read
How to convert a float number to the whole number in JavaScript ?
In this article, we will convert a float number to a whole number in JavaScript. Below are various methods to convert float numbers to whole numbers in JavaScript: Table of Content Math.floor (floating argument): Math.ceil (floating argument) Math.round (floating argument)Math.trunc (floating argument)parseInt (floating argument)double bitwise not
4 min read
How to Check if a Given Number is Fibonacci Number in JavaScript ?
The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones, starting from 0 and 1. Checking for Fibonacci numbers involves verifying whether a given number appears in this sequence. The first few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, and 89, and so on. There are various approaches to ch
4 min read
JavaScript Program to Check whether the Input Number is a Neon Number
A neon number is a number where the sum of digits of its square equals the number itself. For example, 9 is a neon number because 9^2 = 81, and the sum of the digits 81 is 9. There are several ways to check if a given number is a neon number in JavaScript or not which are as follows: Table of Content Using naive methodUsing string conversionUsing a
2 min read
JavaScript Program to Check Whether a Number is an Automorphic Number
Numbers, whose square ends with the same digits as the number itself are referred to as automorphic numbers, sometimes known as circular or circular-permuted numbers. Examples:Input: number = 5Output: YesExplanation: 5 is a automorphic number, because the square of 5 is 25 which ends with 5 the digit itself.Input: 9Output: NoExplanation: 9 is not a
3 min read
JavaScript Program to Check Whether a Number is Harshad Number
A Harshad number (also called Niven number) is a number that is divisible by the sum of its digits. In other words, if you take a number, sum up its digits, and if the original number is divisible by that sum, then it's a Harshad number. For example, 18 is a Harshad number because the sum of its digits is 1 + 8 = 9, and 18 is divisible by 9. Below
2 min read
Check Whether a Number is Strong Number in JavaScript
Strong Numbers are the numbers whose sum of the factorial of digits is equal to the original number. In JavaScript, we can check whether the number is a strong number or not using various approaches. In this article, we will explore all the possible approaches with their practical implementation. These are the following methods: Table of Content Us
3 min read
How to Round a Number to a Certain Number of Decimal Places in JavaScript ?
Rounding a number to a certain number of decimal places in JavaScript means adjusting the number to a specified precision after the decimal point. This is commonly done using methods like toFixed() or Math.round() to format the number for precise calculations or display. Here's how you can achieve it using these methods: Using toFixed() methodThe t
1 min read
JavaScript Program to Check Whether a Number is a Duck Number
Duck numbers are special numbers that occur when a number has the digit '0' in it, but the '0' is not the first digit. numbers require the digit '0' to appear in the number, but not as the first digit. JavaScript provided several methods to check whether a number is a duck number which are as follows: Table of Content Iterative Approach Recursive M
2 min read
CSS transition-property Property
The transition effect is used to display the change in the property of an element over a specified duration. The transition-property property is used to specify the name of the CSS property for which the transition effect will occur. Syntax: transition-property: none | all | property | initial | inherit;Property values: none: This value is used to
4 min read
JavaScript Math SQRT2 Property
The Math.SQRT2 is a property in JavaScript which is simply used to find the value of the square root of 2, whose value is approximately 1.4142. That is, √ 2 = 1.4142 Syntax: Math.SQRT2; Return Value: It simply returns the value of the square root of 2, whose value is approximately 1.4142. Below is an example of the Math SQRT2 Property. Example 1: T
2 min read
JavaScript arrayBuffer byteLength Property
The Javascript arrayBuffer.byteLength is a property in JavaScript that return the length of an ArrayBuffer in a byte. ArrayBuffer is an object which is used to represent fixed-length binary data. Difference between property and function in javascript. Property in JavaScript is nothing but a value whereas method is a function this can be understood
4 min read
JavaScript arrayBuffer.byteLength Property
The Javascript arrayBuffer.byteLength is a property in JavaScript that gives the length of an arrayBuffer in bytes. Syntax: ArrayBuffer.byteLengthParameters: It does not accept any parameter because arrayBuffer.byteLength is a property, not a function. Return Value: It returns the length of an arrayBuffer in bytes. JavaScript code to show the worki
2 min read
JavaScript Date prototype Property
The date.prototype property represents the prototype for the Date constructor. The prototype allows adding new properties, and methods. Below are examples of Date prototype Property. Example: C/C++ Code var birthday = new Date('June 21, 2018 16:44:23'); var date1 = birthday.getDate(); var day1 = birthday.getDay(); var year1 = birthday.getFullYear()
3 min read
JavaScript typedArray.byteOffset Property
The typedArray.byteOffset is an inbuilt property in JavaScript that is used to return the offset in bytes of a given typedArray from the start of its ArrayBuffer. Syntax: typedArray.byteOffset Parameter: It does not accept any parameter because it is a property, not a function. Return value: It returns the offset in bytes of a given typedArray from
1 min read
JavaScript typedArray.BYTES_PER_ELEMENT Property
The typedArray.BYTES_PER_ELEMENT is an inbuilt property in JavaScript that is used to return the size in bytes of each element in a given typedArray. Syntax: typedArray.BYTES_PER_ELEMENT; Parameter: It does not accept any parameter because it is a property, not a function. Return value: It returns the size in bytes of each element in a given tyeped
1 min read
JavaScript typedArray.from() Property
The typedArray.from() is an inbuilt function in JavaScript which is used to construct a new typedArray from a normal array or any iterable object. List of different typedArrays are specified in the table below: Int8Array();Int16Array();Uint32Array();Uint8Array();Uint16Array();Float32Array();Uint8ClampedArray();Int32Array();Float64Array(); Syntax: t
2 min read
JavaScript typedArray.name Property
The typedArray.name is an inbuilt property in JavaScript that is used to represent a string value of the given typedArray constructor name. A list of different typed arrays is specified below: Int8Array();Int16Array();Uint32Array();Uint8Array();Uint16Array();Float32Array();Uint8ClampedArray();Int32Array();Float64Array(); Syntax: typedArray.name; Pa
1 min read
JavaScript MouseEvent Button Property
The MouseEvent button property is used to define the left or right-click events. When the mouse button is clicked then it returns an integer value which describes the left, right, or middle mouse button. Syntax: event.button Return Value: This event returns an integer value on mouse click events are: 0: It indicates the left mouse button.1: It indi
1 min read
three90RightbarBannerImg