Re: Accurate decimal numbers?
Re: Accurate decimal numbers?
- Subject: Re: Accurate decimal numbers?
- From: mark <email@hidden>
- Date: Sat, 01 Jan 2005 09:01:22 -0800
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:
This email sent to email@hidden