Package kotlin. math
Mathematical functions and constants.
The functions include trigonometric, hyperbolic, exponentiation and power, logarithmic, rounding, sign and absolute value.
Functions
Computes exp(x) - 1
.
Since Kotlin
Computes sqrt(x^2 + y^2)
without intermediate overflow or underflow.
Since Kotlin
Computes the remainder of division of this value by the divisor value according to the IEEE 754 standard.
Since Kotlin
Computes ln(x + 1)
.
Since Kotlin
Since Kotlin
Returns the greater of two values.
Since Kotlin
Returns the smaller of two values.
Since Kotlin
Returns the Double value nearest to this value in direction of negative infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of negative infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of negative infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of negative infinity.
Since Kotlin
Returns the Float value nearest to this value in direction of negative infinity.
Since Kotlin
Since Kotlin
Since Kotlin
Since Kotlin
Since Kotlin
Since Kotlin
Returns the Double value nearest to this value in direction of positive infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of positive infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of positive infinity.
Since Kotlin
Returns the Double value nearest to this value in direction of positive infinity.
Since Kotlin
Returns the Float value nearest to this value in direction of positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Double value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Since Kotlin
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.