Hi,
I'm doing some calculations with FieldElement, and need at the end to
convert the result to double. I notice that in the current CM, all
classes that implement FieldElement also implement Number, which would
be exactly what I need. My question therefore is
* Should we have the interface FieldElement extend Number? I know we
could think of fields which are *not* numbers, but we are, after all,
a project dedicated to numerical computations...
* Alternatively, may I introduce a NumberFieldElement which extends
both Number and FieldElement? In this case, I would recommend that
BigFraction, BigReal, Complex, Dfp, DfpDec, Fraction all implement
this interface (which does not change anything, actually).
Thanks for your feedback!
Sébastien


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to