commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julius Davies <juliusdav...@gmail.com>
Subject Re: [Proposal] Create a sandbox commons-money component?
Date Sat, 14 Feb 2009 04:32:13 GMT
Why even bother with the "long" version?  I think Money should use
BigDecimal (or BigInteger... whatever) under the hood exclusively.

BigDecimal/BigInteger already have special optimizations for when they
can fit themselves in a long.

(I would more lean towards BigInteger under the hood, and using it to
represent 4 decimal points.)



-- 
yours,

Julius Davies
250-592-2284 (Home)
250-893-4579 (Mobile)
http://juliusdavies.ca/

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


Mime
View raw message