commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <>
Subject [jira] Commented: (MATH-412) Add high precision decimal floating point library (dfp)
Date Wed, 01 Sep 2010 21:10:54 GMT


Luc Maisonobe commented on MATH-412:

Rather than an abstract Dfp class, a better approach seem to have a single concrete class
Dfp (which can be subclassed as with DfpDec and Decimal10 in the test suite) and a DfpFactory.
The factory is created by specifying the numbers of digits. Also instead of having the static
fields zero, one, two inf Dfp and SQR2, SQR3, PI ... in DfpMath, all these constants can be
accessed as factory.getZero(), factory.getPi() ...
In fact, the factory plays roughly the same role as the ant filtering process and the constants
utility. It simply is run at factory creation time.

> Add high precision decimal floating point library (dfp)
> -------------------------------------------------------
>                 Key: MATH-412
>                 URL:
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 2.1
>         Environment: JDK1.4 - JDK1.6
>            Reporter: William Rossi
>            Assignee: Luc Maisonobe
>             Fix For: 2.2
> I am offering the dfp library available at to the
project.  I've dual licensed the project under ASF and LGPL.   I will submit a software grant

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message