<div dir="ltr"><div>The Rational class provides operations for arithmetic, rounding, 
comparison, hashing, and format conversion. The toString method provides
 a canonical representation of a Rational. All the calculations 
performed have an exact result, except for the square and nth roots, in 
which the user can specify the rounding behavior.</div><div>Link to pull request: <a href="https://github.com/openjdk/jdk/pull/11982">https://github.com/openjdk/jdk/pull/11982</a></div></div>