On Wed, Oct 15, 2008 at 10:07 PM, Graham Cox <[EMAIL PROTECTED]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to