inline val Double.absoluteValue: Double
Platform and version requirements: Kotlin 1.2
inline val Float.absoluteValue: Float
Platform and version requirements: Kotlin 1.2
Returns the absolute value of this value.
Special cases:
NaN.absoluteValue
is NaN
See Also
inline val Int.absoluteValue: Int
Platform and version requirements: Kotlin 1.2
Returns the absolute value of this value.
Special cases:
Int.MIN_VALUE.absoluteValue
is Int.MIN_VALUE
due to an overflowSee Also
inline val Long.absoluteValue: Long
Platform and version requirements: Kotlin 1.2
Returns the absolute value of this value.
Special cases:
Long.MIN_VALUE.absoluteValue
is Long.MIN_VALUE
due to an overflowSee Also
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/absolute-value.html