Flowdock
method

magnitude

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Rational
magnitude() public

Returns the absolute value of rat.

(1/2r).abs    #=> 1/2r
(-1/2r).abs   #=> 1/2r

Rational#magnitude is an alias of Rational#abs.

Show source
Register or log in to add new notes.