method
rationalize
v1_9_3_392 -
Show latest stable
- Class:
Complex
rationalize(p1 = v1)public
If the imaginary part is exactly 0, returns the real part as a Rational, otherwise a RangeError is raised.
rationalize(p1 = v1)If the imaginary part is exactly 0, returns the real part as a Rational, otherwise a RangeError is raised.