abs
1.6.0

abs() -> Number

Returns the absolute value of the number.

An instance-method version of Math.abs.

Examples

Math.abs(-5) //-> 5
(-5).abs()   //-> 5
(5).abs()    //-> 5