kotlin-stdlib / kotlin.math / absoluteValue absoluteValue Common Native 1.2 val Double.absoluteValue: Double(Common source) (Native source) JVM JS 1.2 inline val Double.absoluteValue: Double(JVM source) (JS source) Common Native 1.2 val Float.absoluteValue: Float(Common source) (Native source) JVM JS 1.2 inline val Float.absoluteValue: Float(JVM source) (JS source) Returns the absolute value of this value. Special cases: NaN.absoluteValue is NaN See Also abs Common Native 1.2 val Int.absoluteValue: Int(Common source) (Native source) JVM JS 1.2 inline val Int.absoluteValue: Int(JVM source) (JS source) Returns the absolute value of this value. Special cases: Int.MIN_VALUE.absoluteValue is Int.MIN_VALUE due to an overflow See Also abs Common Native 1.2 val Long.absoluteValue: Long(Common source) (Native source) JVM JS 1.2 inline val Long.absoluteValue: Long(JVM source) (JS source) Returns the absolute value of this value. Special cases: Long.MIN_VALUE.absoluteValue is Long.MIN_VALUE due to an overflow See Also abs