method

magnitude

v2_4_6 - Show latest stable - Class: Float
magnitude()
public

Returns the absolute value of float.

(-34.56).abs   #=> 34.56
-34.56.abs     #=> 34.56