| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Avoiding int<->float conversions is always best. I'd suggest if(0.0 == fabs(x - rint(x)), but I don't claim to be the expert on this.If you're going to compare against zero, why use absolute value?
_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden This email sent to email@hidden
| References: | |
| >Accurate decimal numbers? (From: Mark Dawson <email@hidden>) | |
| >Re: Accurate decimal numbers? (From: Brendan Younger <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.