New class for handling infinite-precision rationals
Joseph D. Darcy
joe.darcy at oracle.com
Thu Mar 2 22:42:24 UTC 2023
Hello,
I suggest a general discussion about whether or not such a class is
appropriate for inclusion in the platform [1] ahead of review of a
particular PR.
Cheers,
-Joe
[1] https://openjdk.org/guide/#socialize-your-change
On 2/21/2023 10:21 AM, Fabio Romano wrote:
> 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
More information about the core-libs-dev
mailing list