Version: v0.8.1 - Beta.  We welcome contributors & feedback.

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

See Also