Child pages
  • Number

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{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 SummarySummery{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 SummarySummery{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#toLocaleString]\(precision)
Returns
Converts the number into a string representingwhich theis numbersuitable tofor apresentation specified precision in fixed-pointthe orgiven exponential notationlocale.{td}{tr}{tbody}{tabletbody}\\ 

{table:class=servoy sDetail{tr}{colgrouptd}{column:width=100%[String]{td}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=682CFE28-C724-43CD-938E-3C3AA8F1C1A9td}[#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:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_desMAX_VALUE_des|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9MAX_VALUE_des|trigger=none|class=sIndent}The largest representable number.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_prsMAX_VALUE_snc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_prsMAX_VALUE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{trbuilder-show:idpermission=retedit}{tr:id=prs}{td}*ReturnsParameters*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_retMAX_VALUE_prs|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_retMAX_VALUE_prs|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeret}{td}*Also seeReturns*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_seeMAX_VALUE_ret|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_seeMAX_VALUE_ret|trigger=none|class=sIndent|trigger=none}}[Number]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9MAX_VALUE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_link|class=sIndent|MAX_VALUE_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samlink}{td}*SampleExternal links*\\{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_samMAX_VALUE_link|text=|trigger=button}{sub-section}{sub-section:682CFE28-C724-43CD-938E-3C3AA8F1C1A9_sam|div:class=sIndent|trigger=none}{code:language=javascript}
application.output("Largest number: " + Number.MAX_VALUE);
{code}{sub-section:MAX_VALUE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:classid=lastDetailRowsam}{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*Sample*\\{sub-section:MAX_VALUE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_desMAX_VALUE_sam|trigger=none|class=sIndent}The smallest representable number.}{code:language=javascript}
application.output("Largest number: " + Number.MAX_VALUE);
{code}{sub-section}{div}{td}{tr}{builder-show:permission=edittr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MIN_VALUE|class=node}{tr:id=prsname}{td}*Parameters*\\h6.MIN_VALUE{td}{tr}{tr:id=des}{td}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_prsMIN_VALUE_des|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_prsMIN_VALUE_des|trigger=none|class=sIndent}The smallest representable number.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=retsnc}{td}*ReturnsSince*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_retMIN_VALUE_snc|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_retMIN_VALUE_snc|trigger=none|class=sIndent}[Number] Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=seeprs}{td}*Also seeParameters*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_seeMIN_VALUE_prs|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_seeMIN_VALUE_prs|trigger=none|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkret}{td}*External linksReturns*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_seeMIN_VALUE_ret|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_linkMIN_VALUE_ret|trigger=none|class=sIndent|trigger=none}}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=samsee}{td}*SampleAlso see*\\{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_samMIN_VALUE_see|text=|trigger=button}{sub-section}{sub-section:A92070CF-93EE-4F9C-974C-CA7C2B4013FC_sam|div:class=sIndent|trigger=none}{code:language=javascript}
application.output("Smallest number: " + Number.MIN_VALUE);
{code}{sub-section:MIN_VALUE_see|trigger=none}{sub-section}{tddiv}{trtd}{tr:class=lastDetailRow}{tdbuilder-show}{tdbuilder-show:permission=edit}{tr:id=link}{tbody}{tbody:id=20D3036A-BC9A-405A-893A-BA6A3B52C033}{tr:id=name}{td}h6.NEGATIVE_INFINITYtd}*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=dessam}{td}*Sample*\\{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_desMIN_VALUE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_desMIN_VALUE_sam|trigger=none|class=sIndent}Special value representing negative infinity; returned on overflow.}{code:language=javascript}
application.output("Smallest number: " + Number.MIN_VALUE);
{code}{sub-section}{div}{td}{tr}{builder-showtr:permission=editclass=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NEGATIVE_INFINITY|class=node}{tr:id=name}{td}h6.NEGATIVE_INFINITY{td}{tr}{tr:id=prsdes}{td}*Parameters*\\{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_prsNEGATIVE_INFINITY_des|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_prsNEGATIVE_INFINITY_des|trigger=none|class=sIndent}Special value representing negative infinity; returned on overflow.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=retsnc}{td}*ReturnsSince*\\{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_retNEGATIVE_INFINITY_snc|text=|trigger=button}{sub-section}{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_retNEGATIVE_INFINITY_snc|trigger=none|class=sIndent}[Number] Replace with version info{sub-section}{td}{tr}{builder-show:}{builder-show:permission=edit}{tr:id=seeprs}{td}*Also seeParameters*\\{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_seeNEGATIVE_INFINITY_prs|text=|trigger=button}{sub-section}{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_seeNEGATIVE_INFINITY_prs|trigger=none|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkret}{td}*External linksReturns*\\{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_seeNEGATIVE_INFINITY_ret|text=|trigger=button}{sub-section}{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_linkNEGATIVE_INFINITY_ret|trigger=none|class=sIndent|trigger=none}}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=samsee}{td}*SampleAlso see*\\{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_samNEGATIVE_INFINITY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:20D3036A-BC9A-405A-893A-BA6A3B52C033_sam|class=sIndentNEGATIVE_INFINITY_see|trigger=none}{sub-section}{code:language=javascript}
application.output("Negative infinity: " + Number.NEGATIVE_INFINITY);
{code}{sub-section}{td}{trdiv}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:classid=lastDetailRowlink}{td}{td}{tr}{tbody}{tbody:id=C6A1F2D1-0495-4144-A124-1F581FA6849A}{tr:id=name}{td}h6.NaN{td}{tr*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=dessam}{td}*Sample*\\{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_desNEGATIVE_INFINITY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_desNEGATIVE_INFINITY_sam|trigger=none|class=sIndent}Special "not a number" value.{sub-section}{code:language=javascript}
application.output("Negative infinity: " + Number.NEGATIVE_INFINITY);
{code}{sub-section}{div}{td}{tr}{builder-showtr:permission=editclass=lastDetailRow}{td}{td}{tr:id=prs}{tdtbody}*Parameters*\\{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_prs|trigger=none}{sub-section}{div}{tbody:id=NaN|class=node}{tr:id=name}{td}h6.NaN{td}{tr}{builder-show}{tr:id=retdes}{td}*Returns*\\{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_retNaN_des|text=|trigger=button}{sub-section}{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_retNaN_des|trigger=none|class=sIndent}Object{Special "not a number" value.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seesnc}{td}*Also seeSince*\\{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_seeNaN_snc|text=|trigger=button}{sub-section}{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_seeNaN_snc|trigger=none|class=sIndent|trigger=none}} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkprs}{td}*External linksParameters*\\{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_seeNaN_prs|text=|trigger=button}{sub-section}{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_linkNaN_prs|trigger=none|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=samret}{td}*SampleReturns*\\{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_samNaN_ret|text=|trigger=button}{sub-section}{sub-section:C6A1F2D1-0495-4144-A124-1F581FA6849A_sam|class=sIndentNaN_ret|trigger=none}{code:language=javascript}
application.output("NaN: " + Number.NaN);
{code}{|class=sIndent}[Object]{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=119A249B-E429-4E95-A8D5-F563366FE509}{tr:id=name}{td}h6.POSITIVE_INFINITY{td}{tr}{tr:id=des}{td}builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_desNaN_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_desNaN_see|trigger=none|class=sIndent}Special value representing infinity; returned on overflow.{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_prsNaN_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_prsNaN_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_retNaN_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_retNaN_sam|trigger=none|class=sIndent}[Number]}{code:language=javascript}
application.output("NaN: " + Number.NaN);
{code}{sub-section}{div}{td}{tr}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=seetd}{td}*Also see*\\{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_see|text=|trigger=button}{sub-section}{tr}{tbody}{tbody:id=POSITIVE_INFINITY|class=node}{tr:id=name}{td}h6.POSITIVE_INFINITY{td}{tr}{tr:id=des}{td}{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_see|class=sIndentPOSITIVE_INFINITY_des|text=|trigger=nonebutton}{sub-section}{td}{tr}{builder-showsub-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=linksnc}{td}*External linksSince*\\{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_seePOSITIVE_INFINITY_snc|text=|trigger=button}{sub-section}{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_link|class=sIndent|trigger=none}POSITIVE_INFINITY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_samPOSITIVE_INFINITY_prs|text=|trigger=button}{sub-section}{sub-section:119A249B-E429-4E95-A8D5-F563366FE509_samPOSITIVE_INFINITY_prs|trigger=none|class=sIndent|trigger=none}{code:language=javascript}
application.output("Positive infinity: " + Number.POSITIVE_INFINITY);
{code}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:POSITIVE_INFINITY_ret|text=|trigger=button}{sub-section}{td}{tr}{tr:class=lastDetailRow}{tdsub-section:POSITIVE_INFINITY_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CBbuilder-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=namelink}{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:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_des*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:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_desPOSITIVE_INFINITY_sam|trigger=none|class=sIndent}Returns a string representing the number in exponential notation.}{code:language=javascript}
application.output("Positive infinity: " + Number.POSITIVE_INFINITY);
{code}{sub-section}{div}{td}{tr}{tr:idclass=prslastDetailRow}{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{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=retname}{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 string representing the number in exponential notation.{sub-sectionh6.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}{builder-show:permission=edit}{tr:id=seedes}{td}*Also see*\\{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_seetoExponential_des|text=|trigger=button}{sub-section}{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_seetoExponential_des|trigger=none|class=sIndent|trigger=none}}Returns a string representing the number in exponential notation.{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksnc}{td}*External linksSince*\\{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_seetoExponential_snc|text=|trigger=button}{sub-section}{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_linktoExponential_snc|trigger=none|class=sIndent|trigger=none}} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_samtoExponential_prs|text=|trigger=button}{sub-section}{sub-section:ABC4AC16-88E4-4BA5-BC61-5E78AE5C67CB_samtoExponential_prs|trigger=none|class=sIndent|trigger=none}{code:language=javascript}
var n = 123.45678;
application.output(n.toExponential(3));
{code}{\{[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:classid=lastDetailRowret}{td}{td}{tr}{tbody}{tbody:id=8946AC8F-0728-4BC7-8441-BC6DE299E67B}{tr:id=name}{td}h6.toFixed{td}{tr*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=sigsee}{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*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=dessnc}{td}*Since*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_destoLocaleString_snc|text=|trigger=button}{sub-section}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_destoLocaleString_snc|trigger=none|class=sIndent}Returns aReplace stringwith representing the number in fixed-point notation.version info{sub-section}{td}{td}{tr}{builder-show}{builder-show:permission=edit}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67BtoLocaleString_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}{sub-section:toLocaleString_prs|trigger=none|class=sIndent}{divsub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67BtoLocaleString_ret|text=|trigger=button}{sub-section}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67BtoLocaleString_ret|trigger=none|class=sIndent}[String] -- A string representing the number in fixed-point notationthe current locale.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67BtoLocaleString_see|text=|trigger=button}{sub-section}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67Bdiv:class=sIndent}{sub-section:toLocaleString_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67B_seetoLocaleString_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67BtoLocaleString_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67BtoLocaleString_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8946AC8F-0728-4BC7-8441-BC6DE299E67BtoLocaleString_sam|class=sIndent|trigger=none}{code:language=javascript}
var n = 123.456781000000;
application.output(n.toFixedtoLocaleString(3));
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9541DEFA-CEC2-4310-A235-85BC8023C0AEtoPrecision|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: 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=dessnc}{td}*Since*\\{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_destoPrecision_snc|text=|trigger=button}{sub-section}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_destoPrecision_snc|trigger=none|class=sIndent}Returns aReplace stringwith representing the number to a specified precision in fixed-point or exponential notation.version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE-section:toPrecision_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AEtoPrecision_prs|trigger=none|class=sIndent}\{[Number]} \[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-85BC8023C0AEtoPrecision_ret|text=|trigger=button}{sub-section}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AEtoPrecision_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-85BC8023C0AEtoPrecision_see|text=|trigger=button}{sub-section}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AEdiv:class=sIndent}{sub-section:toPrecision_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AE_seetoPrecision_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AEtoPrecision_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AEtoPrecision_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9541DEFA-CEC2-4310-A235-85BC8023C0AEtoPrecision_sam|class=sIndent|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}