New class for handling infinite-precision rationals

Fabio Romano fabio19298 at gmail.com
Tue Feb 21 18:21:23 UTC 2023


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.
Link to pull request: https://github.com/openjdk/jdk/pull/11982
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230221/e5f9d779/attachment.htm>


More information about the core-libs-dev mailing list