• 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: Float behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Float behaviour (From: Richard Gray <email@hidden>)

  • Prev by Date: Re: Float behaviour
  • Next by Date: Re: NSTextInput protocol - 'unmarkText' is late?
  • Previous by thread: Re: Float behaviour
  • Next by thread: Re: Float behaviour
  • Index(es):
    • Date
    • Thread