Skip to content

Math Library

Rohan Singh edited this page Feb 11, 2022 · 5 revisions

Exports

Math

The Math object contains the following functions.

abs

abs(value: number): number

acos

acos(d: number): number

asin

asin(d: number): number

atan

atan(d: number): number

atan2

atan2(x: number, y: number): number

ceiling

ceiling(d: number): number

clamp

clamp(value: number, min: number, max: number): number

cos

cos(d: number): number

cosh

cosh(d: number): number

exp

exp(d: number): number

floor

floor(d: number): number

log

log(d: number): number log(d: number, b: number): number

log10

log10(d: number): number

max

max(x: number, y: number): number

min

min(x: number, y: number): number

pow

pow(x: number, y: number): number

round

round(d: number): number

sign

sign(d: number): number

sin

sin(d: number): number

sinh

sinh(d: number): number

sqrt

sqrt(d: number): number

tan

tan(d: number): number

tanh

tanh(d: number): number

truncate

truncate(d: number): number

PI

The mathematical constant PI.

E

The mathematical constant E.