On 20 Sep., 18:56, ted stockwell <[email protected]> wrote:
> On Sep 20, 7:16 am, Philippe Marschall <[email protected]>
> wrote:
>
>
>
> > BigDecimal is the only sane choice for anything that includes monetary
> > calculations.
>
> True, but just because a number is saved as a long doesn't mean you
> can't do calculations using BigDecimal.
> I think the CPU cycles it takes to convert a long to a BigDecimal is
> trivial.

But long is crappy abstraction. Sometimes you need two decimal places,
sometimes three, sometimes six, sometimes "as many as there are".
That's all quite cumbersome to do with a long alone. String seems like
the easier way to go.

Cheers
Philippe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to