Re: 1.45 x 1 = 1.450000047683716 ? :: CurrencyConverter
Re: 1.45 x 1 = 1.450000047683716 ? :: CurrencyConverter
- Subject: Re: 1.45 x 1 = 1.450000047683716 ? :: CurrencyConverter
- From: Rams <email@hidden>
- Date: Mon, 17 Jan 2005 13:57:50 -0500
"What Every Computer Scientist Should Know About Floating-Point
Arithmetic"
http://docs.sun.com/source/806-3568/ncg_goldberg.html
On Jan 17, 2005, at 1:44 AM, NOYFB wrote:
Hi
I just completed the Dev Connection tutorial CurrencyConverter
http://developer.apple.com/documentation/Cocoa/Conceptual/
ObjCTutorial/chapter01/chapter_1_section_1.html#//apple_ref/doc/uid/
20001101.
When I enter
1.4 x 1 = 1.450000047683716 should be 1.45
1.1 x x = 1.100000023841858 Should be 1.1
1 x 1 = 1 Ok.
I do not think this is normal or maybe it is and there is extremely
good explanation to use setFloatingPointFormat.
Pleas confirm If it's a bug or that I have to specify some sort of
flag/option?
Thanks
_______________________________________________
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
--
Learn how to cryptographically sign your mail in Panther
http://www.joar.com/certificates/
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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