Child pages
  • Math

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
{div:style=}
Wiki Markup
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



Enter additional information related to this 'class'

inside

the

\

{div}

macro

with

'id=description'

{div} {div:id=description}{div}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#E] Euler's constant and the base of natural logarithms.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#LN10] Natural logarithm of 10.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#LN2] Natural logarithm of 2.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#LOG10E] Base 10 logarithm of E.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#LOG2E] Base 2 logarithm of E.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#PI] Ratio of the circumference of a circle to its diameter.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#SQRT1_2] Square root of 1/2.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#SQRT2] Square root of 2.{td}{tr}{tbody}{table}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#abs]\(x) Returns the absolute value of a number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#acos]\(x) Returns the arccosine (in radians) of a number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#asin]\(x) Returns the arcsine (in radians) of a number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#atan]\(x) Returns the arctangent (in radians) of a number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#atan2]\(y, x) Returns the arctangent of the quotient of its arguments.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#ceil]\(x) Returns the smallest integer greater than or equal to a number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#cos]\(x) Returns the cosine of a number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#exp]\(x) Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#floor]\(x) Returns the largest integer less than or equal to a number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#log]\(x) Returns the natural logarithm (base E) of a number.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#max]\(value) Returns the greater of two (or more) numbers.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#min]\(value) Returns the lesser of two (or more) numbers.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#pow]\(base, exponent) Returns base to the exponent power, that is, base exponent.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#random]\() Returns a pseudo\-random number between 0 and 1.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#round]\(x) Returns the value of a number rounded to the nearest integer.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#sin]\(x) Returns the sine of a number.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#sqrt]\(x) Returns the square root of a number.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#tan]\(x) Returns the tangent of a number.{td}{tr}{tbody}{table}\\ {table:id=property|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=E}{tr:id=name}{td}h6.E{td}{tr}{tr:id=des}{td}{div:class=sIndent}Euler's constant and the base of natural logarithms. Approximately 2.718.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.E {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LN10}{tr:id=name}{td}h6.LN10{td}{tr}{tr:id=des}{td}{div:class=sIndent}Natural logarithm of 10. Approximately 2.302.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.LN10 {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LN2}{tr:id=name}{td}h6.LN2{td}{tr}{tr:id=des}{td}{div:class=sIndent}Natural logarithm of 2. Approximately 0.693.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.LN2 {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LOG10E}{tr:id=name}{td}h6.LOG10E{td}{tr}{tr:id=des}{td}{div:class=sIndent}Base 10 logarithm of E. Approximately 0.434.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.LOG10E {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LOG2E}{tr:id=name}{td}h6.LOG2E{td}{tr}{tr:id=des}{td}{div:class=sIndent}Base 2 logarithm of E. Approximately 1.442.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.LOG2E {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=PI}{tr:id=name}{td}h6.PI{td}{tr}{tr:id=des}{td}{div:class=sIndent}Ratio of the circumference of a circle to its diameter. Approximately 3.14159.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.PI {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SQRT1_2}{tr:id=name}{td}h6.SQRT1_2{td}{tr}{tr:id=des}{td}{div:class=sIndent}Square root of 1/2. Equivalently, 1 over the square root of 2, approximately 0.707.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.SQRT1_2 {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SQRT2}{tr:id=name}{td}h6.SQRT2{td}{tr}{tr:id=des}{td}{div:class=sIndent}Square root of 2. Approximately 1.414.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.SQRT2 {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=abs-Number}{tr:id=name}{td}h6.abs{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}abs{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the absolute value of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.abs(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=acos-Number}{tr:id=name}{td}h6.acos{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}acos{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the arccosine (in radians) of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.acos(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=asin-Number}{tr:id=name}{td}h6.asin{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}asin{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the arcsine (in radians) of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.asin(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=atan-Number}{tr:id=name}{td}h6.atan{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}atan{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the arctangent (in radians) of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.atan(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=atan2-Number_Number}{tr:id=name}{td}h6.atan2{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}atan2{span}{span}\(y, x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the arctangent of the quotient of its arguments.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} y \{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.atan2(number,number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ceil-Number}{tr:id=name}{td}h6.ceil{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}ceil{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the smallest integer greater than or equal to a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.ceil(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=cos-Number}{tr:id=name}{td}h6.cos{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}cos{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the cosine of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.cos(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=exp-Number}{tr:id=name}{td}h6.exp{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}exp{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.exp(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=floor-Number}{tr:id=name}{td}h6.floor{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}floor{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the largest integer less than or equal to a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.floor(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=log-Number}{tr:id=name}{td}h6.log{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}log{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the natural logarithm (base E) of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.log(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=max-NumberArray}{tr:id=name}{td}h6.max{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}max{span}{span}\(value){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the greater of two (or more) numbers.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]...} value {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

Div
iddescription


HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

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

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#abs(x)
Returns the absolute value of a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#acos(x)
Returns the arccosine (in radians) of a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#asin(x)
Returns the arcsine (in radians) of a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#atan(x)
Returns the arctangent (in radians) of a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#atan2(y, x)
Returns the arctangent of the quotient of its arguments.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#ceil(x)
Returns the smallest integer greater than or equal to a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#cos(x)
Returns the cosine of a number.
Table Body (tbody)
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 Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#floor(x)
Returns the largest integer less than or equal to a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#log(x)
Returns the natural logarithm (base E) of a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#max(value)
Returns the greater of two (or more) numbers.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#min(value)
Returns the lesser of two (or more) numbers.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#pow(base, exponent)
Returns base to the exponent power, that is, base exponent.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#random()
Returns a pseudo-random number between 0 and 1.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#round(x)
Returns the value of a number rounded to the nearest integer.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#sin(x)
Returns the sine of a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#sqrt(x)
Returns the square root of a number.
Table Body (tbody)
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
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
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
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
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)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=min-NumberArray}{tr:id=name}{td}h6.min{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}min{span}{span}\(value){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the lesser of two (or more) numbers.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]...} value {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idpow-Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.pow{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
pow
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Number
]{span}{span:style=
Span
stylefont-weight:
bold;
}
pow
{span}{span}\
Span
(base,
exponent)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns base to the exponent power, that is, base exponent.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} base \{[Number]} exponent {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.pow(number,number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=random}{tr:id=name}{td}h6.random{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}random{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns a pseudo\-random number between 0 and 1.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.random() {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=round-Number}{tr:id=name}{td}h6.round{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}round{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the value of a number rounded to the nearest integer.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.round(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sin-Number}{tr:id=name}{td}h6.sin{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}sin{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the sine of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.sin(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sqrt-Number}{tr:id=name}{td}h6.sqrt{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}sqrt{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the square root of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.sqrt(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=tan-Number}{tr:id=name}{td}h6.tan{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}tan{span}{span}\(x){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the tangent of a number.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} x {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Math.tan(number) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
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)