external object Math
Platform and version requirements: JS
Exposes the JavaScript Math object to Kotlin.
val PI: Double |
fun abs(value: Double): Double | |
fun acos(value: Double): Double | |
fun asin(value: Double): Double | |
fun atan(value: Double): Double | |
fun atan2(y: Double, x: Double): Double | |
fun ceil(value: Number): Int | |
fun cos(value: Double): Double | |
fun exp(value: Double): Double | |
fun floor(value: Number): Int | |
fun log(value: Double): Double | |
fun max(vararg values: Int): Int fun max(vararg values: Float): Float fun max(vararg values: Double): Double | |
fun min(vararg values: Int): Int fun min(vararg values: Float): Float fun min(vararg values: Double): Double | |
fun pow(base: Double, exp: Double): Double | |
fun random(): Double | |
fun round(value: Number): Int | |
fun sin(value: Double): Double | |
fun sqrt(value: Double): Double | |
fun tan(value: Double): Double |
open operator fun equals(other: Any?): Boolean Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements: | |
open fun hashCode(): Int Returns a hash code value for the object. The general contract of hashCode is: | |
open fun toString(): String Returns a string representation of the object. |
fun Math.max(a: Long, b: Long): Long Returns the greater of two values. | |
fun Math.min(a: Long, b: Long): Long Returns the smaller of two values. |
© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-math/