You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Eric Barnhill <er...@gmail.com> on 2019/03/29 23:43:45 UTC

[numbers-fraction] of() methods for BigFraction - take BigInteger only, or include long and int?

Almost done with Fraction here.

Fraction() operates with int inputs only, due to the mathematical
limitations of the fast algorithm, so of() methods only need to handle int
inputs.

But what about BigFraction()? Right now the of() methods handle BigIngeters
only. Do we want to expand this so a BigFraction of() method can handle any
combination of BigInteger, long, and int? That would be quite a few
constructors but that's life with hard typing. Or should we document that
the user should wrap arguments to a BigFraction of() call in the BigInteger
class? I suppose I lean toward the latter.

Once I resolve this issue, I think I'll be able to run a style check and
submit the code for anyone interested to review.