I have heard of folks who wanted 14 places after the decimal point for financial
calculations! Type 'long' has no decimal point, and type 'double' gives rounding
problems for decimal fractions.

Frank Sauer wrote:
>
> Which brings up another question that has been bugging me for
> the longest time now. Why does everyone use the BigDecimal class
> for numbers? Do we really have orders with balances requiring
> hundreds or thousands of digits? What's wrong with using the Java
> primitives, or - if you want Objects because you need an 'undefined'
> value - with the simpler wrapper classes like Integer?
________________________________________________________________________________

Evan Ireland              Sybase EA Server Engineering       [EMAIL PROTECTED]
                            Wellington - New Zealand              +64 4 934-5856

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to