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: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=28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657}{tr:id=name}{td}h6.MAX_VALUE{td}{tr}{tr:id=des}{td}{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_des|text=|trigger=button}{sub-section}{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_des|trigger=none|class=sIndent}The largest representable number.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_ret|text=|trigger=button}{sub-section}{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_see|text=|trigger=button}{sub-section}{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_see|text=|trigger=button}{sub-section}{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_link|class=sIndent|trigger=none}https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/MAX_VALUE
{sub-section}{td}{tr}{tr:id=sam}{td}}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_sam|text=|trigger=button}{sub-section}{sub-section:28ACD3AE9BB3FD5B-2C5DA7C9-45D141E9-B173936C-F7FC6B80CA6C88C11064D657_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=DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565}{tr:id=name}{td}h6.MIN_VALUE{td}{tr}{tr:id=des}{td}{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_des|text=|trigger=button}{sub-section}{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_des|trigger=none|class=sIndent}The smallest representable number.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_ret|text=|trigger=button}{sub-section}{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_see|text=|trigger=button}{sub-section}{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{trbuilder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_see|text=|trigger=button}{sub-section}{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_link|class=sIndent|trigger=none}https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/MIN_VALUE
{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_sam|text=|trigger=button}{sub-section}{sub-section:DD9381070987B2A8-6DA0BD5E-4C674AB3-96549820-0578FCB74A2E8FF4A6910565_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=449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F}{tr:id=name}{td}h6.NEGATIVE_INFINITY{td}{tr}{tr:id=des}{td}{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_des|text=|trigger=button}{sub-section}{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_des|trigger=none|class=sIndent}Special value representing negative infinity; returned on overflow.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_ret|text=|trigger=button}{sub-section}{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_see|text=|trigger=button}{sub-section}{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_see|text=|trigger=button}{sub-section}{sub-section:449E4C01-7D67-4588-AA8F-00D296C6ABDF_link|class=sIndent|trigger=none}https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/NEGATIVE_INFINITY
6B5708D9-33D9-43D9-BE64-4370E4C4B06F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_sam|text=|trigger=button}{sub-section}{sub-section:449E4C016B5708D9-7D6733D9-458843D9-AA8FBE64-00D296C6ABDF4370E4C4B06F_sam|class=sIndent|trigger=none}{code:language=javascript}
application.output("Negative infinity: " + Number.NEGATIVE_INFINITY);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274}{tr:id=name}{td}h6.NaN{td}{tr}{tr:id=des}{td}{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_des|text=|trigger=button}{sub-section}{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_des|trigger=none|class=sIndent}Special "not a number" value.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_ret|text=|trigger=button}{sub-section}{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_see|text=|trigger=button}{sub-section}{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_see|text=|trigger=button}{sub-section}{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_link|class=sIndent|trigger=none}https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/NaN
{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_sam|text=|trigger=button}{sub-section}{sub-section:80797BAACE3F0C02-A8A74714-4CAC44ED-B483BEA4-5AF518185168EC3485925274_sam|class=sIndent|trigger=none}{code:language=javascript}
application.output("NaN: " + Number.NaN);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1}{tr:id=name}{td}h6.POSITIVE_INFINITY{td}{tr}{tr:id=des}{td}{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_des|text=|trigger=button}{sub-section}{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_des|trigger=none|class=sIndent}Special value representing infinity; returned on overflow.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_ret|text=|trigger=button}{sub-section}{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_see|text=|trigger=button}{sub-section}{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{trbuilder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_see|text=|trigger=button}{sub-section}{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_link|class=sIndent|trigger=none}https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/POSITIVE_INFINITY
{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_sam|text=|trigger=button}{sub-section}{sub-section:E60DBB90E122CD88-D42D29AD-48BC4F29-A3778F6C-45B7DFFAFA57733878F153E1_sam|class=sIndent|trigger=none}{code:language=javascript}
application.output("Positive infinity: " + Number.POSITIVE_INFINITY);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{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=670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07}{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:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_des|text=|trigger=button}{sub-section}{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_des|trigger=none|class=sIndent}Returns a string representing the number in exponential notation.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_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:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_ret|text=|trigger=button}{sub-section}{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_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:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_see|text=|trigger=button}{sub-section}{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_see|text=|trigger=button}{sub-section}{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D6-8670-3DFE274BFFEE_link|class=sIndent|trigger=none}https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toExponential
4671-BBDB-B598A0E19B07_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_sam|text=|trigger=button}{sub-section}{sub-section:670AFAAAFB9ABD4B-AE29BA25-42D64671-8670BBDB-3DFE274BFFEEB598A0E19B07_sam|class=sIndent|trigger=none}{code:language=javascript}
var n = 123.45678;
application.output(n.toExponential(3));
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962}{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:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_des|text=|trigger=button}{sub-section}{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_des|trigger=none|class=sIndent}Returns a string representing the number in fixed-point notation.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_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:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_ret|text=|trigger=button}{sub-section}{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_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:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_see|text=|trigger=button}{sub-section}{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_see|text=|trigger=button}{sub-section}{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_link|class=sIndent|trigger=none}https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toFixed
{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_sam|text=|trigger=button}{sub-section}{sub-section:AFDFCCEB8F78501A-EB3C4AB6-4DC54F7C-8D149850-B8E852CDDADE5B188E0FA962_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=298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322}{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:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_des|text=|trigger=button}{sub-section}{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_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}{tr:id=prs}{td}*Parameters*\\{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_prs|trigger=none}\[precision\] -- An integer specifying the number of significant digits.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_ret|text=|trigger=button}{sub-section}{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_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:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_see|text=|trigger=button}{sub-section}{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_see|text=|trigger=button}{sub-section}{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_link|class=sIndent|trigger=none}https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toPrecision
{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_sam|text=|trigger=button}{sub-section}{sub-section:298FE375E6F7D9D9-3DEB4895-426E48A2-BBABB043-C74583AE9E1699AE504A5322_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}