absoluteValue

inline actual val Double.absoluteValue: Double (source)

Platform and version requirements: Kotlin 1.2

inline actual val Float.absoluteValue: Float (source)

Platform and version requirements: Kotlin 1.2

Returns the absolute value of this value.

Special cases:

  • NaN.absoluteValue is NaN

See Also

abs

inline actual val Int.absoluteValue: Int (source)

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 overflow

See Also

abs

inline actual val Long.absoluteValue: Long (source)

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 overflow

See Also

abs