commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From victor.vo...@gmxpro.net
Subject [lang] what about mutable BigInteger etc.
Date Mon, 23 Dec 2002 16:50:59 GMT
Hi!

What do you think about implementing mutable 
BigInteger and BigDecimal classes as part of a [math] 
package?

Using BigDecimal for financial applications comes with 
a big drawback: for every calculation a new BigDecimal
object is created since BigDecimals are immutable.
You might even need to create two BigDecimal per 
calculation:

    BigDecimal result = ...
    result = result.plus(new BigDecimal(0.345f));

Or is there some other library you know of?

Victor


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message