[
https://issues.apache.org/jira/browse/MATH-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905227#action_12905227
]
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: https://issues.apache.org/jira/browse/MATH-412
> 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
> http://sourceforge.net/projects/dfp/ to the project. I've dual licensed the
> project under ASF and LGPL. I will submit a software grant shortly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.