.. _Number: ================================================ Number ================================================ Description ----------- Wraps a numeric value. Static Properties ^^^^^^^^^^^^^^^^^ +-------------------------------------------------------------+------------------------------------------------------------+ | :ref:`MAX_VALUE` readonly | A constant representing the largest representable number. | +-------------------------------------------------------------+------------------------------------------------------------+ | :ref:`MIN_VALUE` readonly | A constant representing the smallest representable number. | +-------------------------------------------------------------+------------------------------------------------------------+ | :ref:`NEGATIVE_INFINITY` readonly | A constant representing negative infinity. | +-------------------------------------------------------------+------------------------------------------------------------+ | :ref:`NaN` readonly | A constant representing the special "Not a Number" value. | +-------------------------------------------------------------+------------------------------------------------------------+ | :ref:`POSITIVE_INFINITY` readonly | A constant representing positive infinity. | +-------------------------------------------------------------+------------------------------------------------------------+ Constructors ^^^^^^^^^^^^ +---------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`Number` readonly | Returns a new Number object set to the value of the argument converted to a number. | +---------------------------------------+-------------------------------------------------------------------------------------+ Methods ^^^^^^^ +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toExponential` readonly | Converts the Number object to a string in scientific notation. | +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toFixed` readonly | Converts the Number object to a string with fixed decimals. | +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toLocaleString` readonly | Returns the value of a Number object converted to a string, using localized conventions. | +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toPrecision` readonly | Converts the Number object to a string in either scientific or fixed notation, epending on its value. | +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toSource` readonly | Creates a string representation of this object that can be fed back to?eval()?to re-create an object. Works only with built-in classes. | +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toString` readonly | Returns the value of a Number object converted to a string. | +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`valueOf` readonly | Returns the value of a Number object as a primitive number. | +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 Number/MIN_VALUE.rst Number/MAX_VALUE.rst Number/NaN.rst Number/NEGATIVE_INFINITY.rst Number/POSITIVE_INFINITY.rst Number/toSource.rst Number/toString.rst Number/toLocaleString.rst Number/toFixed.rst Number/toExponential.rst Number/toPrecision.rst Number/valueOf.rst Number/Number.rst