Child pages
  • Number

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
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


HTML Table
classservoy sSummery
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summery
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#MAX_VALUE
The largest representable number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#MIN_VALUE
The smallest representable number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#NEGATIVE_INFINITY
Special value representing negative infinity; returned on overflow.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Object
Table Cell (td)
#NaN
Special "not a number" value.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#POSITIVE_INFINITY
Special value representing infinity; returned on overflow.

HTML Table
classservoy sSummery
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summery
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toExponential([fractionDigits])
Returns a string representing the number in exponential notation.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toFixed([digits])
Returns a string representing the number in fixed-point notation.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toLocaleString()
Converts the number into a string which is suitable for presentation in the given locale.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toPrecision([precision])
Returns a string representing the number to a specified precision in fixed-point or exponential notation.

HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Property Details
Table Body (tbody)
idMAX_VALUE
classnode
Table Row (tr)
idname
Table Cell (td)
MAX_VALUE
Table Row (tr)
iddes
Table Cell (td)
The largest representable number.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.output("Largest number: " + Number.MAX_VALUE);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idMIN_VALUE
classnode
Table Row (tr)
idname
Table Cell (td)
MIN_VALUE
Table Row (tr)
iddes
Table Cell (td)
The smallest representable number.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.output("Smallest number: " + Number.MIN_VALUE);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idNEGATIVE_INFINITY
classnode
Table Row (tr)
idname
Table Cell (td)
NEGATIVE_INFINITY
Table Row (tr)
iddes
Table Cell (td)
Special value representing negative infinity; returned on overflow.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.output("Negative infinity: " + Number.NEGATIVE_INFINITY);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idNaN
classnode
Table Row (tr)
idname
Table Cell (td)
NaN
Table Row (tr)
iddes
Table Cell (td)
Special "not a number" value.
Table Row (tr)
idret
Table Cell (td)
Returns
Object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.output("NaN: " + Number.NaN);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idPOSITIVE_INFINITY
classnode
Table Row (tr)
idname
Table Cell (td)
POSITIVE_INFINITY
Table Row (tr)
iddes
Table Cell (td)
Special value representing infinity; returned on overflow.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.output("Positive infinity: " + Number.POSITIVE_INFINITY);
Table Row (tr)
classlastDetailRow
Table Cell (td)


HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idtoExponential
classnode
Table Row (tr)
idname
Table Cell (td)
toExponential
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
toExponential
Span
stylefloat: left;
idiets
([fractionDigits])
Table Row (tr)
iddes
Table Cell (td)
Returns a string representing the number in exponential notation.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Number} [fractionDigits] – An integer specifying the number of digits after the decimal point. Defaults to as many digits as necessary to specify the number.
Table Row (tr)
idret
Table Cell (td)
Returns
String – A string representing the number in exponential notation.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var n = 123.45678;
application.output(n.toExponential(3));
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtoFixed
classnode
Table Row (tr)
idname
Table Cell (td)
toFixed
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
toFixed
Span
stylefloat: left;
idiets
([digits])
Table Row (tr)
iddes
Table Cell (td)
Returns a string representing the number in fixed-point notation.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Number} [digits] – The number of digits to appear after the decimal point. Defaults to 0.
Table Row (tr)
idret
Table Cell (td)
Returns
String – A string representing the number in fixed-point notation.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var n = 123.45678;
application.output(n.toFixed(3));
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtoLocaleString
classnode
Table Row (tr)
idname
Table Cell (td)
toLocaleString
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
toLocaleString
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Converts the number into a string which is suitable for presentation in the given locale.
Table Row (tr)
idret
Table Cell (td)
Returns
String – A string representing the number in the current locale.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var n = 1000000;
application.output(n.toLocaleString());
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtoPrecision
classnode
Table Row (tr)
idname
Table Cell (td)
toPrecision
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
toPrecision
Span
stylefloat: left;
idiets
([precision])
Table Row (tr)
iddes
Table Cell (td)
Returns a string representing the number to a specified precision in fixed-point or exponential notation.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Number} [precision] – An integer specifying the number of significant digits.
Table Row (tr)
idret
Table Cell (td)
Returns
String – A string representing the number to a specified precision in fixed-point or exponential notation.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var n = 123.45678;
application.output(n.toPrecision(5));
Table Row (tr)
classlastDetailRow
Table Cell (td)