• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple Question about bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Question about bindings


  • Subject: Re: Simple Question about bindings
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 27 Aug 2009 03:59:42 -0400

I thought it was only a "Object" wrapper around a double number..
Nope -- that's Double. double is an IEEE floating point number and you can't safely represent precise decimal values (read: currency) with it. There are some numbers you simply can't represent with it at all, in fact. BigDecimal is specifically designed to handle things like currency, where you need fixed (but arbitrary) precision as well as tight control over rounding rules (which you have no control over with doubles).

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Simple Question about bindings (From: Francesco Romano <email@hidden>)
 >Re: Simple Question about bindings (From: Chuck Hill <email@hidden>)
 >Re: Simple Question about bindings (From: Francesco Romano <email@hidden>)
 >Re: Simple Question about bindings (From: Mike Schrag <email@hidden>)
 >Re: Simple Question about bindings (From: Francesco Romano <email@hidden>)

  • Prev by Date: Re: Simple Question about bindings
  • Next by Date: D2W User Presentable Description
  • Previous by thread: Re: Simple Question about bindings
  • Next by thread: Re: Simple Question about bindings
  • Index(es):
    • Date
    • Thread