JavaScript Number Static Properties Last Updated : 10 Feb, 2023 Comments Improve Suggest changes Like Article Like Report The JavaScript Number is an object that can represent numeric values like integer, float, hexadecimal, decimal, etc. It acts as a wrapper object for primitive numeric values. It has various methods and properties that are used to perform different tasks on numbers. The following table shows some static properties of the Number object that can be used throughout a program as constants. Property: MAX_VALUE: It returns the maximum number value that is supported in JavaScript.MIN_VALUE: It returns the smallest positive numeric value that is closest to 0, but, not the most negative number.NEGATIVE_INFINITY: It represents the negative infinity value.POSITIVE_INFINITY: It represents the positive infinity value.MIN_SAFE_INTEGER: It represents the minimum safe integer in JavaScript.NaN: It is used for representing a value that is not a legal number. The below examples demonstrate how these properties of the Number are used. Example 1: In this example, we find out the maximum and minimum values supported in JavaScript. JavaScript console.log('Maximum Value:', Number.MAX_VALUE); console.log('Minimum Value:', Number.MIN_VALUE); Console Output: Maximum Value: 1.7976931348623157e+308 Minimum Value: 5e-324 Example 2: In this example, we find out the positive and negative infinity values in JavaScript. JavaScript console.log('Negative Infinity:', Number.NEGATIVE_INFINITY); console.log('Positive Infinity:', Number.POSITIVE_INFINITY); Console Output: Negative Infinity: -Infinity Positive Infinity: Infinity We have a Cheat Sheet on Javascript Numbers where we covered all the important topics of Javascript to check those please go through JavaScript Number Complete Reference. Comment More infoAdvertise with us Next Article JavaScript Number Static Properties N naman9071 Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Properties Similar Reads JavaScript Number Reference 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); } 3 min read Properties of Real Numbers The number system includes different types of numbers for example prime numbers, odd numbers, even numbers, rational numbers, whole numbers, etc. These numbers can be expressed in the form of figures as well as words accordingly. For example, the numbers like 40 and 65 expressed in the form of figur 8 min read JavaScript Math Reference JavaScript Math object is used to perform mathematical operations on numbers. Math is an inbuilt object that works with numbers types but it does not work with BigInt.Example: Below example will give you a brief idea of JavaScript math objects.javascript// Return PI value(3.141592653589793) console. 3 min read C# Restrictions on Properties Properties in C# are special class members that provide a flexible mechanism to read, write, or compute the value of a private field. They act as methods called accessors i.e. "get" and "set" methods. Using Properties, we can achieve encapsulation and information hiding. Properties allow controlled 5 min read Properties of Whole Numbers A number system refers to a system that represents numbers, where a number is defined as the mathematical value that helps to count, measure, or label and perform various mathematical calculations. We have various types of numbers based on their properties, such as natural numbers, whole numbers, in 7 min read Natural Numbers | Definition, Examples & Properties Natural numbers are the numbers that start from 1 and end at infinity. In other words, natural numbers are counting numbers and they do not include 0 or any negative or fractional numbers.Here, we will discuss the definition of natural numbers, the types and properties of natural numbers, as well as 11 min read Ruby Static Members In Programming, static keywords are primarily used for memory management. The static keyword is used to share the same method or variable of a class across the objects of that class. There are various members of a class in Ruby. Once an object is created in Ruby, the methods and variables for that o 3 min read How to Define Static Property in TypeScript Interface? A static property in a class is a property that belongs to the class itself, rather than to instances of the class. It is shared among all instances of the class and can be accessed without creating an instance of the class. Static properties are defined using the static keyword in front of the prop 3 min read Injecting a Value into a Static Field in Spring Injecting values into static fields in Spring Boot is a common challenge for developers working with dependency injection. Since static fields are tied to the class rather than an instance, Springâs IoC container cannot easily inject them. This article will walk you through best practices for inject 6 min read Static Method in Java With Examples In Java, the static keyword is used to create methods that belongs to the class rather than any specific instance of the class. Any method that uses the static keyword is referred to as a static method.Features of Static Method:A static method in Java is associated with the class, not with any objec 3 min read Like