| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Thinking about it, you're correct. I thought I had a case, but the more I
thought about it, the more it didn't make sense. In my case, I should never
see infinity or NaN, as the number comes from a scan of a string, which
should reject anything that might cause a problem.
Thanks again,
mark
From: John Stiles <email@hidden>
Date: Fri, 31 Dec 2004 22:22:45 -0800
To: mark <email@hidden>
Cc: Dev Cocoa <email@hidden>, Brendan Younger <email@hidden>
Subject: Re: Accurate decimal numbers?
In what case would "floor(x) == ceil(x)" return a different result from
"floor(x) == x", exactly? I don't see how the ceil affects anything.
Also, I don't know if I 100% understand your last question. floor and
ceil return floats--they're typically* integral values, but still float
types.
* Why "typically" and not "always"? Infinity and NaN.
_______________________________________________ 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: | |
| >Re: Accurate decimal numbers? (From: mark <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.