• 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: Accurate decimal numbers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Accurate decimal numbers?
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: makeFirstResponder and Enter
  • Next by Date: Re: Accurate decimal numbers?
  • Previous by thread: Re: makeFirstResponder and Enter
  • Next by thread: Re: Accurate decimal numbers?
  • Index(es):
    • Date
    • Thread