{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summery{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#MAX_VALUE]
The largest representable number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MIN_VALUE]
The smallest representable number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#NEGATIVE_INFINITY]
Special value representing negative infinity; returned on overflow.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#NaN]
Special "not a number" value.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#POSITIVE_INFINITY]
Special value representing infinity; returned on overflow.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summery{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#toExponential]\(\[fractionDigits\])
Returns a string representing the number in exponential notation.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toFixed]\(\[digits\])
Returns a string representing the number in fixed\-point notation.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toLocaleString]\()
Converts the number into a string which is suitable for presentation in the given locale.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toPrecision]\(\[precision\])
Returns a string representing the number to a specified precision in fixed\-point or exponential notation.{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=MAX_VALUE|class=node}{tr:id=name}{td}h6.MAX_VALUE{td}{tr}{tr:id=des}{td}{sub-section:MAX_VALUE_des|text=|trigger=button}{sub-section}{sub-section:MAX_VALUE_des|trigger=none|class=sIndent}The largest representable number.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MAX_VALUE_snc|text=|trigger=button}{sub-section}{sub-section:MAX_VALUE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MAX_VALUE_prs|text=|trigger=button}{sub-section}{sub-section:MAX_VALUE_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MAX_VALUE_ret|text=|trigger=button}{sub-section}{sub-section:MAX_VALUE_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MAX_VALUE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MAX_VALUE_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MAX_VALUE_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MAX_VALUE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MAX_VALUE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MAX_VALUE_sam|trigger=none}{code:language=javascript}
application.output("Largest number: " + Number.MAX_VALUE);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MIN_VALUE|class=node}{tr:id=name}{td}h6.MIN_VALUE{td}{tr}{tr:id=des}{td}{sub-section:MIN_VALUE_des|text=|trigger=button}{sub-section}{sub-section:MIN_VALUE_des|trigger=none|class=sIndent}The smallest representable number.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MIN_VALUE_snc|text=|trigger=button}{sub-section}{sub-section:MIN_VALUE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MIN_VALUE_prs|text=|trigger=button}{sub-section}{sub-section:MIN_VALUE_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MIN_VALUE_ret|text=|trigger=button}{sub-section}{sub-section:MIN_VALUE_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MIN_VALUE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MIN_VALUE_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MIN_VALUE_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MIN_VALUE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MIN_VALUE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MIN_VALUE_sam|trigger=none}{code:language=javascript}
application.output("Smallest number: " + Number.MIN_VALUE);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NEGATIVE_INFINITY|class=node}{tr:id=name}{td}h6.NEGATIVE_INFINITY{td}{tr}{tr:id=des}{td}{sub-section:NEGATIVE_INFINITY_des|text=|trigger=button}{sub-section}{sub-section:NEGATIVE_INFINITY_des|trigger=none|class=sIndent}Special value representing negative infinity; returned on overflow.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:NEGATIVE_INFINITY_snc|text=|trigger=button}{sub-section}{sub-section:NEGATIVE_INFINITY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:NEGATIVE_INFINITY_prs|text=|trigger=button}{sub-section}{sub-section:NEGATIVE_INFINITY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:NEGATIVE_INFINITY_ret|text=|trigger=button}{sub-section}{sub-section:NEGATIVE_INFINITY_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:NEGATIVE_INFINITY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NEGATIVE_INFINITY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:NEGATIVE_INFINITY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NEGATIVE_INFINITY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:NEGATIVE_INFINITY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NEGATIVE_INFINITY_sam|trigger=none}{code:language=javascript}
application.output("Negative infinity: " + Number.NEGATIVE_INFINITY);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NaN|class=node}{tr:id=name}{td}h6.NaN{td}{tr}{tr:id=des}{td}{sub-section:NaN_des|text=|trigger=button}{sub-section}{sub-section:NaN_des|trigger=none|class=sIndent}Special "not a number" value.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:NaN_snc|text=|trigger=button}{sub-section}{sub-section:NaN_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:NaN_prs|text=|trigger=button}{sub-section}{sub-section:NaN_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:NaN_ret|text=|trigger=button}{sub-section}{sub-section:NaN_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:NaN_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NaN_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:NaN_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NaN_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:NaN_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NaN_sam|trigger=none}{code:language=javascript}
application.output("NaN: " + Number.NaN);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=POSITIVE_INFINITY|class=node}{tr:id=name}{td}h6.POSITIVE_INFINITY{td}{tr}{tr:id=des}{td}{sub-section:POSITIVE_INFINITY_des|text=|trigger=button}{sub-section}{sub-section:POSITIVE_INFINITY_des|trigger=none|class=sIndent}Special value representing infinity; returned on overflow.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:POSITIVE_INFINITY_snc|text=|trigger=button}{sub-section}{sub-section:POSITIVE_INFINITY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:POSITIVE_INFINITY_prs|text=|trigger=button}{sub-section}{sub-section:POSITIVE_INFINITY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:POSITIVE_INFINITY_ret|text=|trigger=button}{sub-section}{sub-section:POSITIVE_INFINITY_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:POSITIVE_INFINITY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:POSITIVE_INFINITY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:POSITIVE_INFINITY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:POSITIVE_INFINITY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:POSITIVE_INFINITY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:POSITIVE_INFINITY_sam|trigger=none}{code:language=javascript}
application.output("Positive infinity: " + Number.POSITIVE_INFINITY);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=toExponential|class=node}{tr:id=name}{td}h6.toExponential{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}toExponential{span}{span:id=iets|style=float: left;}\(\[fractionDigits\]){span}{td}{tr}{tr:id=des}{td}{sub-section:toExponential_des|text=|trigger=button}{sub-section}{sub-section:toExponential_des|trigger=none|class=sIndent}Returns a string representing the number in exponential notation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toExponential_snc|text=|trigger=button}{sub-section}{sub-section:toExponential_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:toExponential_prs|text=|trigger=button}{sub-section}{sub-section:toExponential_prs|trigger=none|class=sIndent}\{[Number]} \[fractionDigits\] -- An integer specifying the number of digits after the decimal point. Defaults to as many digits as necessary to specify the number.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:toExponential_ret|text=|trigger=button}{sub-section}{sub-section:toExponential_ret|trigger=none|class=sIndent}[String] -- A string representing the number in exponential notation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toExponential_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toExponential_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toExponential_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toExponential_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toExponential_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toExponential_sam|trigger=none}{code:language=javascript}
var n = 123.45678;
application.output(n.toExponential(3));
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toFixed|class=node}{tr:id=name}{td}h6.toFixed{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}toFixed{span}{span:id=iets|style=float: left;}\(\[digits\]){span}{td}{tr}{tr:id=des}{td}{sub-section:toFixed_des|text=|trigger=button}{sub-section}{sub-section:toFixed_des|trigger=none|class=sIndent}Returns a string representing the number in fixed\-point notation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toFixed_snc|text=|trigger=button}{sub-section}{sub-section:toFixed_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:toFixed_prs|text=|trigger=button}{sub-section}{sub-section:toFixed_prs|trigger=none|class=sIndent}\{[Number]} \[digits\] -- The number of digits to appear after the decimal point. Defaults to 0.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:toFixed_ret|text=|trigger=button}{sub-section}{sub-section:toFixed_ret|trigger=none|class=sIndent}[String] -- A string representing the number in fixed-point notation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toFixed_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toFixed_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toFixed_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toFixed_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toFixed_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toFixed_sam|trigger=none}{code:language=javascript}
var n = 123.45678;
application.output(n.toFixed(3));
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toLocaleString|class=node}{tr:id=name}{td}h6.toLocaleString{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}toLocaleString{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:toLocaleString_des|text=|trigger=button}{sub-section}{sub-section:toLocaleString_des|trigger=none|class=sIndent}Converts the number into a string which is suitable for presentation in the given locale.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toLocaleString_snc|text=|trigger=button}{sub-section}{sub-section:toLocaleString_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:toLocaleString_prs|text=|trigger=button}{sub-section}{sub-section:toLocaleString_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:toLocaleString_ret|text=|trigger=button}{sub-section}{sub-section:toLocaleString_ret|trigger=none|class=sIndent}[String] -- A string representing the number in the current locale.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toLocaleString_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toLocaleString_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toLocaleString_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toLocaleString_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toLocaleString_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toLocaleString_sam|trigger=none}{code:language=javascript}
var n = 1000000;
application.output(n.toLocaleString());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toPrecision|class=node}{tr:id=name}{td}h6.toPrecision{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}toPrecision{span}{span:id=iets|style=float: left;}\(\[precision\]){span}{td}{tr}{tr:id=des}{td}{sub-section:toPrecision_des|text=|trigger=button}{sub-section}{sub-section:toPrecision_des|trigger=none|class=sIndent}Returns a string representing the number to a specified precision in fixed\-point or exponential notation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toPrecision_snc|text=|trigger=button}{sub-section}{sub-section:toPrecision_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:toPrecision_prs|text=|trigger=button}{sub-section}{sub-section:toPrecision_prs|trigger=none|class=sIndent}\{[Number]} \[precision\] -- An integer specifying the number of significant digits.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:toPrecision_ret|text=|trigger=button}{sub-section}{sub-section:toPrecision_ret|trigger=none|class=sIndent}[String] -- A string representing the number to a specified precision in fixed-point or exponential notation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toPrecision_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toPrecision_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toPrecision_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toPrecision_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toPrecision_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toPrecision_sam|trigger=none}{code:language=javascript}
var n = 123.45678;
application.output(n.toPrecision(5));
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}