public static abs<NUMBER_TYPE extends AbstractNumber>(value as NUMBER_TYPE) as NUMBER_TYPE
Returns the absolute value of a scalar number.
Signed numeric values are mirrored when they are negative, while unsigned values are returned unchanged. Floating-point negative zero becomes positive zero; NaN remains NaN.
import klyn.math print(Math.abs(-12)) print(Math.abs(12u)) print(Math.abs(-3.5))