Your Search Results

    MAX VALUE Redirect 1

    There were scripting errors on this page. While those are being addressed by site editors, you can view partial content below.

    {{ JSRef }}


    The Number.MAX_VALUE property represents the maximum numeric value representable in JavaScript.

    {{ js_property_attributes }}


    The MAX_VALUE property has a value of approximately 1.79E+308. Values larger than MAX_VALUE are represented as "Infinity".

    Because MAX_VALUE is a static property of Number, you always use it as Number.MAX_VALUE, rather than as a property of a Number object you created.


    Example: Using MAX_VALUE

    The following code multiplies two numeric values. If the result is less than or equal to MAX_VALUE, the func1 function is called; otherwise, the func2 function is called.

    if (num1 * num2 <= Number.MAX_VALUE) {
    } else {


    Specification Status Comment
    ECMAScript 1st Edition. Implemented in JavaScript 1.1 Standard Initial definition.
    {{ SpecName }} {{ Spec2 }}  
    {{ Spec2 }}  

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support
    Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support

    See also

    Document Tags and Contributors

    Contributors to this page: Sheppy
    Last updated by: Sheppy,