Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Div
styledisplay:none

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

Enter additional information related to this 'class' inside the {div} macro with 'id=description'

Div
iddescription



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
E
Euler's constant and the base of natural logarithms.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
LN10
Natural logarithm of 10.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
LN2
Natural logarithm of 2.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
LOG10E
Base 10 logarithm of E.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
LOG2E
Base 2 logarithm of E.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
PI
Ratio of the circumference of a circle to its diameter.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
SQRT1_2
Square root of 1/2.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
SQRT2
Square root of 2.



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
abs(x)
Returns the absolute value of a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
acos(x)
Returns the arccosine (in radians) of a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
asin(x)
Returns the arcsine (in radians) of a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
atan(x)
Returns the arctangent (in radians) of a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
atan2(y, x)
Returns the arctangent of the quotient of its arguments.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
ceil(x)
Returns the smallest integer greater than or equal to a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
cos(x)
Returns the cosine of a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
exp(x)
Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
floor(x)
Returns the largest integer less than or equal to a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
log(x)
Returns the natural logarithm (base E) of a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
max(value)
Returns the greater of two (or more) numbers.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
min(value)
Returns the lesser of two (or more) numbers.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
pow(base, exponent)
Returns base to the exponent power, that is, base exponent.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
random()
Returns a pseudo-random number between 0 and 1.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
round(x)
Returns the value of a number rounded to the nearest integer.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
sin(x)
Returns the sine of a number.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
sqrt(x)
Returns the square root of a number.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
tan(x)
Returns the tangent of a number.



HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Details
Table Body (tbody)
idE
Table Row (tr)
idname
Table Cell (td)

E

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Euler's constant and the base of natural logarithms. Approximately 2.718.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.E
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idLN10
Table Row (tr)
idname
Table Cell (td)

LN10

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Natural logarithm of 10. Approximately 2.302.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.LN10
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idLN2
Table Row (tr)
idname
Table Cell (td)

LN2

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Natural logarithm of 2. Approximately 0.693.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.LN2
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idLOG10E
Table Row (tr)
idname
Table Cell (td)

LOG10E

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Base 10 logarithm of E. Approximately 0.434.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.LOG10E
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idLOG2E
Table Row (tr)
idname
Table Cell (td)

LOG2E

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Base 2 logarithm of E. Approximately 1.442.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.LOG2E
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idPI
Table Row (tr)
idname
Table Cell (td)

PI

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Ratio of the circumference of a circle to its diameter. Approximately 3.14159.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.PI
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idSQRT1_2
Table Row (tr)
idname
Table Cell (td)

SQRT1_2

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Square root of 1/2. Equivalently, 1 over the square root of 2, approximately 0.707.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.SQRT1_2
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idSQRT2
Table Row (tr)
idname
Table Cell (td)

SQRT2

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Square root of 2. Approximately 1.414.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.SQRT2
Table Row (tr)
classlastDetailRow
Table Cell (td)
 



HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Details
Table Body (tbody)
idabs-Number
Table Row (tr)
idname
Table Cell (td)

abs

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
abs
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the absolute value of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.abs(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idacos-Number
Table Row (tr)
idname
Table Cell (td)

acos

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
acos
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the arccosine (in radians) of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.acos(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idasin-Number
Table Row (tr)
idname
Table Cell (td)

asin

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
asin
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the arcsine (in radians) of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.asin(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idatan-Number
Table Row (tr)
idname
Table Cell (td)

atan

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
atan
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the arctangent (in radians) of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.atan(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idatan2-Number_Number
Table Row (tr)
idname
Table Cell (td)

atan2

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
atan2
Span
(y, x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the arctangent of the quotient of its arguments.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} y
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.atan2(number,number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idceil-Number
Table Row (tr)
idname
Table Cell (td)

ceil

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
ceil
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the smallest integer greater than or equal to a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.ceil(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcos-Number
Table Row (tr)
idname
Table Cell (td)

cos

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
cos
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the cosine of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.cos(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idexp-Number
Table Row (tr)
idname
Table Cell (td)

exp

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
exp
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.exp(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idfloor-Number
Table Row (tr)
idname
Table Cell (td)

floor

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
floor
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the largest integer less than or equal to a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.floor(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idlog-Number
Table Row (tr)
idname
Table Cell (td)

log

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
log
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the natural logarithm (base E) of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.log(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idmax-NumberArray
Table Row (tr)
idname
Table Cell (td)

max

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
max
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the greater of two (or more) numbers.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number...} value
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.max(number,number,number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idmin-NumberArray
Table Row (tr)
idname
Table Cell (td)

min

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
min
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the lesser of two (or more) numbers.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number...} value
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.min(number,number,number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idpow-Number_Number
Table Row (tr)
idname
Table Cell (td)

pow

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
pow
Span
(base, exponent)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns base to the exponent power, that is, base exponent.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} base
{Number} exponent
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.pow(number,number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idrandom
Table Row (tr)
idname
Table Cell (td)

random

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
random
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a pseudo-random number between 0 and 1.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.random()
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idround-Number
Table Row (tr)
idname
Table Cell (td)

round

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
round
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the value of a number rounded to the nearest integer.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.round(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsin-Number
Table Row (tr)
idname
Table Cell (td)

sin

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
sin
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the sine of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.sin(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idsqrt-Number
Table Row (tr)
idname
Table Cell (td)

sqrt

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
sqrt
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the square root of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.sqrt(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idtan-Number
Table Row (tr)
idname
Table Cell (td)

tan

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
tan
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the tangent of a number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Math.tan(number)
Table Row (tr)
classlastDetailRow
Table Cell (td)