Re: Float behaviour
Re: Float behaviour
- Subject: Re: Float behaviour
- From: Scott Ribe <email@hidden>
- Date: Mon, 22 Aug 2005 12:01:24 -0600
> According to my currency converter
> however, 1 x 1.2 = 1.200000047683716
Neither 0.1, nor 0.2, nor 1.2 can be represented exactly in a binary
floating point representation. So you either get to round appropriately all
over the place, or use some BCD class for exact representation.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
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