absoluteValue

Common
val Double.absoluteValue: Double
val Float.absoluteValue: Float

Returns the absolute value of this value.

Special cases:

  • NaN.absoluteValue is NaN

Since Kotlin

1.2

See also

abs

function

val Double.absoluteValue: Double
val Float.absoluteValue: Float

Returns the absolute value of this value.

Special cases:

  • NaN.absoluteValue is NaN

Since Kotlin

1.2

See also

abs

function

JS
val Double.absoluteValue: Double
val Float.absoluteValue: Float

Returns the absolute value of this value.

Special cases:

  • NaN.absoluteValue is NaN

Since Kotlin

1.2

See also

abs

function

Native
val Double.absoluteValue: Double
val Float.absoluteValue: Float

Returns the absolute value of this value.

Special cases:

  • NaN.absoluteValue is NaN

Since Kotlin

1.2

See also

abs

actual function

Common
val Int.absoluteValue: Int

Returns the absolute value of this value.

Special cases:

  • Int.MIN_VALUE.absoluteValue is Int.MIN_VALUE due to an overflow

Since Kotlin

1.2

See also

abs

function

val Int.absoluteValue: Int

Returns the absolute value of this value.

Special cases:

  • Int.MIN_VALUE.absoluteValue is Int.MIN_VALUE due to an overflow

Since Kotlin

1.2

See also

abs

function

JS
val Int.absoluteValue: Int

Returns the absolute value of this value.

Special cases:

  • Int.MIN_VALUE.absoluteValue is Int.MIN_VALUE due to an overflow

Since Kotlin

1.2

See also

abs

function

Native
val Int.absoluteValue: Int

Returns the absolute value of this value.

Special cases:

  • Int.MIN_VALUE.absoluteValue is Int.MIN_VALUE due to an overflow

Since Kotlin

1.2

See also

abs

actual function

Common
val Long.absoluteValue: Long

Returns the absolute value of this value.

Special cases:

  • Long.MIN_VALUE.absoluteValue is Long.MIN_VALUE due to an overflow

Since Kotlin

1.2

See also

abs

function

val Long.absoluteValue: Long

Returns the absolute value of this value.

Special cases:

  • Long.MIN_VALUE.absoluteValue is Long.MIN_VALUE due to an overflow

Since Kotlin

1.2

See also

abs

function

JS
val Long.absoluteValue: Long

Returns the absolute value of this value.

Special cases:

  • Long.MIN_VALUE.absoluteValue is Long.MIN_VALUE due to an overflow

Since Kotlin

1.2

See also

abs

function

Native
val Long.absoluteValue: Long

Returns the absolute value of this value.

Special cases:

  • Long.MIN_VALUE.absoluteValue is Long.MIN_VALUE due to an overflow

Since Kotlin

1.2

See also

abs

actual function