Math | typescript
Options
All
• Public
• Public/Protected
• All

# Interface Math

• Math

## Methods

### acosh

• acosh(x: number): number
• Returns the inverse hyperbolic cosine of a number.

#### Parameters

• ##### x: number

A numeric expression that contains an angle measured in radians.

### asinh

• asinh(x: number): number
• Returns the inverse hyperbolic sine of a number.

#### Parameters

• ##### x: number

A numeric expression that contains an angle measured in radians.

### atanh

• atanh(x: number): number
• Returns the inverse hyperbolic tangent of a number.

#### Parameters

• ##### x: number

A numeric expression that contains an angle measured in radians.

### cbrt

• cbrt(x: number): number
• Returns an implementation-dependent approximation to the cube root of number.

#### Parameters

• ##### x: number

A numeric expression.

### clz32

• clz32(x: number): number
• Returns the number of leading zero bits in the 32-bit binary representation of a number.

#### Parameters

• ##### x: number

A numeric expression.

### cosh

• cosh(x: number): number
• Returns the hyperbolic cosine of a number.

#### Parameters

• ##### x: number

A numeric expression that contains an angle measured in radians.

### expm1

• expm1(x: number): number
• Returns the result of (e^x - 1), which is an implementation-dependent approximation to subtracting 1 from the exponential function of x (e raised to the power of x, where e is the base of the natural logarithms).

#### Parameters

• ##### x: number

A numeric expression.

### fround

• fround(x: number): number
• Returns the nearest single precision float representation of a number.

#### Parameters

• ##### x: number

A numeric expression.

### hypot

• hypot(...values: number[]): 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.

### imul

• imul(x: number, y: number): number
• Returns the result of 32-bit multiplication of two numbers.

#### Parameters

• ##### x: number

First number

• ##### y: number

Second number

### log10

• log10(x: number): number
• Returns the base 10 logarithm of a number.

#### Parameters

• ##### x: number

A numeric expression.

### log1p

• log1p(x: number): number
• Returns the natural logarithm of 1 + x.

#### Parameters

• ##### x: number

A numeric expression.

### log2

• log2(x: number): number
• Returns the base 2 logarithm of a number.

#### Parameters

• ##### x: number

A numeric expression.

### sign

• sign(x: number): number
• Returns the sign of the x, indicating whether x is positive, negative or zero.

#### Parameters

• ##### x: number

The numeric expression to test

### sinh

• sinh(x: number): number
• Returns the hyperbolic sine of a number.

#### Parameters

• ##### x: number

A numeric expression that contains an angle measured in radians.

### tanh

• tanh(x: number): number
• Returns the hyperbolic tangent of a number.

#### Parameters

• ##### x: number

A numeric expression that contains an angle measured in radians.

### trunc

• trunc(x: number): number
• Returns the integral part of the a numeric expression, x, removing any fractional digits. If x is already an integer, the result is x.

#### Parameters

• ##### x: number

A numeric expression.

## Legend

• Module
• Object literal
• Variable
• Function
• Function with type parameter
• Index signature
• Type alias
• Enumeration
• Enumeration member
• Property
• Method
• Interface
• Interface with type parameter
• Constructor
• Property
• Method
• Index signature
• Class
• Class with type parameter
• Constructor
• Property
• Method
• Accessor
• Index signature
• Inherited constructor
• Inherited property
• Inherited method
• Inherited accessor
• Protected property
• Protected method
• Protected accessor
• Private property
• Private method
• Private accessor
• Static property
• Static method

Generated using TypeDoc