[Cuis-dev] Fraction numerator and denominator

Mark Volkmann r.mark.volkmann at gmail.com
Fri Jul 5 08:51:37 PDT 2024


I was surprised to see that the numerator and denominator instance methods
of the Fraction class are in the private method category. Why
should invoking those be avoided? Perhaps they are considered to be
confusing since they return values from the reduced form of the fraction.
For example, `(4 / 6) numerator` returns 2 because the reduced form of the
fraction is `2 / 3`.

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240705/87a8e2dc/attachment.htm>


More information about the Cuis-dev mailing list