method

rationalize

Importance_1
rationalize(p1 = v1) public

If the imaginary part is exactly 0, returns the real part as a Rational, otherwise a RangeError is raised.

Show source
Register or log in to add new notes.