Number.absolute
absolute() -> number
Description
Get the absolute (positive) value.
$num = 5 $num.absolute() //= 5 $num = -7 $num.absolute() //= 7 $num = -3.2 $num.absolute() //= 3.2
Get the absolute (positive) value.
$num = 5 $num.absolute() //= 5 $num = -7 $num.absolute() //= 7 $num = -3.2 $num.absolute() //= 3.2