# Math

JS
1.1
`object Math`
Deprecated: Use top-level functions from kotlin.math package instead.

Exposes the JavaScript Math object to Kotlin.

### Properties

JS
1.1

#### PI

`val PI: Double`

### Functions

JS
1.1

#### abs

`fun abs(value: Double): Double`
JS
1.1

#### acos

`fun acos(value: Double): Double`
JS
1.1

#### asin

`fun asin(value: Double): Double`
JS
1.1

#### atan

`fun atan(value: Double): Double`
JS
1.1

#### atan2

`fun atan2(y: Double, x: Double): Double`
JS
1.1

#### ceil

`fun ceil(value: Number): Int`
JS
1.1

#### cos

`fun cos(value: Double): Double`
JS
1.1

#### exp

`fun exp(value: Double): Double`
JS
1.1

#### floor

`fun floor(value: Number): Int`
JS
1.1

#### log

`fun log(value: Double): Double`
JS
1.1

#### max

`fun max(vararg values: Int): Int`
`fun max(vararg values: Float): Float`
`fun max(vararg values: Double): Double`
JS
1.1

#### min

`fun min(vararg values: Int): Int`
`fun min(vararg values: Float): Float`
`fun min(vararg values: Double): Double`
JS
1.1

#### pow

`fun pow(base: Double, exp: Double): Double`
JS
1.1

#### random

`fun random(): Double`
JS
1.1

#### round

`fun round(value: Number): Int`
JS
1.1

#### sin

`fun sin(value: Double): Double`
JS
1.1

#### sqrt

`fun sqrt(value: Double): Double`
JS
1.1

#### tan

`fun tan(value: Double): Double`

### Extension Functions

JS
1.1

#### max

Returns the greater of two values.

`fun Math.max(a: Long, b: Long): Long`
JS
1.1

#### min

Returns the smaller of two values.

`fun Math.min(a: Long, b: Long): Long`