• 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: Recommendation for keeping track of money in Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recommendation for keeping track of money in Core Data


  • Subject: Re: Recommendation for keeping track of money in Core Data
  • From: Markus Hitter <email@hidden>
  • Date: Tue, 17 Jan 2006 11:13:46 +0100


Am 17.01.2006 um 04:04 schrieb Jeff LaMarche:

Or am I missing something (I certainly could be)?

Using integers gives you usually more precision and less headaches? Just put the decimal point in the right (always the same) place when viewing the results.


OK, I've seen public bank software which obviously uses floats (<http://www.rt.boerse-stuttgart.de/pages/search/main.html? searchterm=CG02VX>, look at "Basispreis"). But I still think you want exact maths instead of the (wrong) impression of 15 digit precision.

While in memory, the value is stored as an NSNumber, not as a raw float, so only when the number is stored or loaded will the loss of precision come into play, right?

The trouble starts when you operate values with different powers? 1.234567891234567E3 != .1234567891234567E4 ?


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >RE: Recommendation for keeping track of money in Core Data (From: Jeff Laing <email@hidden>)
 >Re: Recommendation for keeping track of money in Core Data (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Multiple NSOpenGLPixelFormats - performance issue
  • Next by Date: Re: [Core Data] Improve save performance ?
  • Previous by thread: Re: Recommendation for keeping track of money in Core Data
  • Next by thread: RE: Recommendation for keeping track of money in Core Data
  • Index(es):
    • Date
    • Thread