abs

fun Int.abs(): Int

computes the absolute value of the receiver integer.

Return

Int

fun Long.abs(): Long

computes the absolute value of the receiver integer.

Return

Long

fun Number.abs(): Double

computes the absolute value of the receiver number.

Return

Double