{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:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{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:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{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}[#toPrecision]\(precision)
Returns a string representing the number to a specified precision in fixed-point or exponential notation.{td}{tr}{tbody}{table}\\
{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=682CFE28-C724-43CD-938E-3C3AA8F1C1A9}{tr:id=name}{td}h6.MAX_VALUE{td}{tr}{tr:id=des}{td}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_des|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_des|trigger=none|class=sIndent}The largest representable number.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_ret|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_see|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_see|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_sam|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_sam|class=sIndent|trigger=none}{code:language=javascript}
application.output("Largest number: " + Number.MAX_VALUE);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A92070CF-93EE-4F9C-974C-CA7C2B4013FC}{tr:id=name}{td}h6.MIN_VALUE{td}{tr}{tr:id=des}{td}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_des|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_des|trigger=none|class=sIndent}The smallest representable number.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_ret|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_see|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_see|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_sam|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_sam|class=sIndent|trigger=none}{code:language=javascript}
application.output("Smallest number: " + Number.MIN_VALUE);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=20D3036A-BC9A-405A-893A-BA6A3B52C033}{tr:id=name}{td}h6.NEGATIVE_INFINITY{td}{tr}{tr:id=des}{td}{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_des|text=|trigger=button}{sub-section}{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_des|trigger=none|class=sIndent}
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClientservoy sSummary12%30%58%height: 30px;3Property SummaryThe largest representable number.The smallest representable number.Special value representing negative infinity; returned on overflow.Special "not a number" value.Special value representing infinity; returned on overflow.servoy sSummary12%30%58%height: 30px;3Methods SummaryReturns a string representing the number in exponential notation.Returns a string representing the number in exponential notation.Returns a string representing the number in fixed-point notation.Returns a string representing the number in fixed-point notation.Converts the number into a string which is suitable for presentation in the given locale.Returns a string representing the number to a specified precision in fixed-point or exponential notation.Returns a string representing the number to a specified precision in fixed-point or exponential notation.Returns a string representing the specified Number object.Returns a string representing the specified Number object.propertyservoy sDetail2100%height:30px2Property DetailsMAX_VALUEname
Returns a string representing the number in exponential notation.
{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_prs|trigger=none}\[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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_ret|text=|trigger=button}{sub-section}{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_ret|trigger=none|class=sIndent}[String] -- A prs
Parameters
sIndentfractionDigitsAn integer specifying the number of digits after the decimal point. Defaults to as many digits as necessary to specify the number.ret
Returns
sIndent A string representing the number in exponential notation.clients
Returns a string representing the number in fixed-point notation.
{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_prs|trigger=none}\[digits\] -- The number of digits to appear after the decimal point. Defaults to 0.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_ret|text=|trigger=button}{sub-section}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_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:8946AC8F-0728-4BC7-8441-BC6DE299E67B_see|text=|trigger=button}{sub-section}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_see|text=|trigger=button}{sub-section}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_sam|text=|trigger=button}{sub-section}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_sam|class=sIndent|trigger=none}{code:language=javascript}
var n = 123.45678;
application.output(n.toFixed(3));
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9541DEFA-CEC2-4310-A235-85BC8023C0AE}{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:9541DEFA-CEC2-4310-A235-85BC8023C0AE_des|text=|trigger=button}{sub-section}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_des|trigger=none|class=sIndent}prs
Parameters
sIndentdigitsThe number of digits to appear after the decimal point. Defaults to 0.ret
Returns
sIndent A string representing the number in fixed-point notation.clients
Returns a string representing the number to a specified precision in fixed-point or exponential notation.
{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_prs|trigger=none}\[precision\] -- An integer specifying the number of significant digits.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_ret|text=|trigger=button}{sub-section}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_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:9541DEFA-CEC2-4310-A235-85BC8023C0AE_see|text=|trigger=button}{sub-section}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_see|text=|trigger=button}{sub-section}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_sam|text=|trigger=button}{sub-section}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_sam|class=sIndent|trigger=none}{code:language=javascript}
var n = 123.45678;
application.output(n.toPrecision(5));
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}prs
Parameters
sIndentprecisionAn integer specifying the number of significant digits.ret
Returns
sIndent A string representing the number to a specified precision in fixed-point or exponential notation.clients