method

magnitude

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

Returns the absolute value of flt.

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