Re: Recommendation for keeping track of money in Core Data
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