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