Re: New class for handling infinite-precision rationals

2023-03-02 Thread Joseph D. Darcy
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 provi

New class for handling infinite-precision rationals

2023-02-21 Thread Fabio Romano
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