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".
- Re: Doubts about Entity beans, Should we u... Hal Hildebrand (Work)
- Re: Doubts about Entity beans, Should we use th... Chris Raber
- Re: Doubts about Entity beans, Should we u... Murali Krishna Devarakonda
- Re: Doubts about Entity beans, Should we use th... Maxim Loukianov
- Re: Doubts about Entity beans, Should we use th... Shaun OHAGAN
- Re: Doubts about Entity beans, Should we u... Steve Muench
- Re: Doubts about Entity beans, Should we use th... Muly Oved
- Re: Doubts about Entity beans, Should we use th... Chris Raber
- Re: Doubts about Entity beans, Should we u... James Cook
- Re: Doubts about Entity beans, Should ... Frank Sauer
- Re: Doubts about Entity beans, Sho... Evan Ireland
- Re: Doubts about Entity beans, Sho... James Cook
- Re: Doubts about Entity beans, Should ... Richard Monson-Haefel
- Re: Doubts about Entity beans, Sho... James Cook
- Re: Doubts about Entity beans, Should we use th... Jon Ferguson
- Re: Doubts about Entity beans, Should we use th... Chris Raber
- Re: Doubts about Entity beans, Should we use th... Sachin Aggarwal
- Re: Doubts about Entity beans, Should we u... Steve Muench
- Re: Doubts about Entity beans, Should ... James Cook
- Re: Doubts about Entity beans, Sho... Steve Muench
