Re: CurrencyConverter not precise
Re: CurrencyConverter not precise
- Subject: Re: CurrencyConverter not precise
- From: Shawn Erickson <email@hidden>
- Date: Fri, 08 Dec 2006 13:45:43 -0800
On Dec 8, 2006, at 1:42 PM, Steffen Börner wrote:
Hi List,
This is my first post here.
I just followed Apples tutorial "Building Currency Converter"
http://developer.apple.com/documentation/Cocoa/Conceptual/
ObjCTutorial/chapter05/chapter_5_section_1.html#//apple_ref/doc/uid/
20002053-TPXREF101
But when entering values with digits after the decimal sign the
calculated amount is not precise.
For example:
Exchange Rate: 3.22
Dollars to Convert: 10
Amount in other Currency:32,20000076293945
Where does this come from and how can I correct that? Is it because
I use an Intel Processor? ;)
Look up floating point precision.
-Shawn_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden