• 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: Objective-C parameter mutation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C parameter mutation


  • Subject: Re: Objective-C parameter mutation
  • From: "Sherm Pendley" <email@hidden>
  • Date: Thu, 16 Oct 2008 02:58:23 -0400

On Wed, Oct 15, 2008 at 10:07 PM, Graham Cox <email@hidden> wrote:

>
> Others have addressed your current problem, but a note about the problem of
> passing 0.001:
>
> A float may not be able to exactly represent 0.001, but a value somewhat
> close to it.


Spot-on!

Goldberg's classic paper on the subject is a must-read for anyone working
with floats:

    <http://docs.sun.com/source/806-3568/ncg_goldberg.html>

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Objective-C parameter mutation (From: "James Trankelson" <email@hidden>)
 >Re: Objective-C parameter mutation (From: Graham Cox <email@hidden>)

  • Prev by Date: NSComboBox select change
  • Next by Date: Re: tearing my hair, ok here is a compilable example.
  • Previous by thread: Re: Objective-C parameter mutation
  • Next by thread: table bindings, value transformer per row?
  • Index(es):
    • Date
    • Thread