Interface Math
interface Math {
[toStringTag]: string;
E: number;
LN10: number;
LN2: number;
LOG10E: number;
LOG2E: number;
PI: number;
SQRT1_2: number;
SQRT2: number;
abs(x: number): number;
acos(x: number): number;
acosh(x: number): number;
asin(x: number): number;
asinh(x: number): number;
atan(x: number): number;
atan2(y: number, x: number): number;
atanh(x: number): number;
cbrt(x: number): number;
ceil(x: number): number;
clz32(x: number): number;
cos(x: number): number;
cosh(x: number): number;
exp(x: number): number;
expm1(x: number): number;
floor(x: number): number;
fround(x: number): number;
hypot(...values: number[]): number;
imul(x: number, y: number): number;
log(x: number): number;
log10(x: number): number;
log1p(x: number): number;
log2(x: number): number;
max(...values: number[]): number;
min(...values: number[]): number;
pow(x: number, y: number): number;
random(): number;
round(x: number): number;
sign(x: number): number;
sin(x: number): number;
sinh(x: number): number;
sqrt(x: number): number;
tan(x: number): number;
tanh(x: number): number;
trunc(x: number): number;
}
[toStringTag]: string;
E: number;
LN10: number;
LN2: number;
LOG10E: number;
LOG2E: number;
PI: number;
SQRT1_2: number;
SQRT2: number;
abs(x: number): number;
acos(x: number): number;
acosh(x: number): number;
asin(x: number): number;
asinh(x: number): number;
atan(x: number): number;
atan2(y: number, x: number): number;
atanh(x: number): number;
cbrt(x: number): number;
ceil(x: number): number;
clz32(x: number): number;
cos(x: number): number;
cosh(x: number): number;
exp(x: number): number;
expm1(x: number): number;
floor(x: number): number;
fround(x: number): number;
hypot(...values: number[]): number;
imul(x: number, y: number): number;
log(x: number): number;
log10(x: number): number;
log1p(x: number): number;
log2(x: number): number;
max(...values: number[]): number;
min(...values: number[]): number;
pow(x: number, y: number): number;
random(): number;
round(x: number): number;
sign(x: number): number;
sin(x: number): number;
sinh(x: number): number;
sqrt(x: number): number;
tan(x: number): number;
tanh(x: number): number;
trunc(x: number): number;
}
Properties
Readonly
[toStringTag]
[toStringTag] : string
Readonly
E
E: number
Readonly
LN10
LN10: number
The natural logarithm of 10.
Readonly
LN2
LN2: number
The natural logarithm of 2.
Readonly
LOG10E
LOG10E: number
The base-10 logarithm of e.
Readonly
LOG2E
LOG2E: number
The base-2 logarithm of e.
Readonly
PI
PI: number
Pi. This is the ratio of the circumference of a circle to its diameter.
Readonly
SQRT1_2
SQRT1_2 : number
The square root of 0.5, or, equivalently, one divided by the square root of 2.
Readonly
SQRT2
SQRT2: number
The square root of 2.
Methods
abs
acos
acosh
asin
asinh
atan
atan2
atanh
cbrt
ceil
clz32
cos
cosh
exp
expm1
floor
fround
hypot
- hypot(...values): number
Returns the square root of the sum of squares of its arguments.
Parameters
Rest
...values: number[]Values to compute the square root for. If no arguments are passed, the result is +0. If there is only one argument, the result is the absolute value. If any argument is +Infinity or -Infinity, the result is +Infinity. If any argument is NaN, the result is NaN. If all arguments are either +0 or −0, the result is +0.
Returns number
The mathematical constant e. This is Euler's number, the base of natural logarithms.