• 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: why are floats flakey?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why are floats flakey?


  • Subject: Re: why are floats flakey?
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 25 May 2004 18:06:16 +0200

Raphael,

On 25.5.2004, at 16:20, Raphael Sebbe wrote:
>>> Time = TimeValue / TimeScale
>>> That way, any rational number can be used
...
> ... I meant that any rational rate (by opposition to irrational) can
> be used with no lost using that method ....

Which is not true (that's why I have written). A rational rate which
happens to be a rate of two prime numbers, (at least) one of which is
outside the integer range (and there provably is an inifinite number of
such prime numbers!) can *never* be expressed using your notation.

In other words, the notation is in principle just as "flakey" as
floats; the *only* difference is that the non-expressible number set is
different.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: why are floats flakey?
      • From: Charles Srstka <email@hidden>
References: 
 >why are floats flakey? (From: justin webster <email@hidden>)
 >Re: why are floats flakey? (From: Raphael Sebbe <email@hidden>)
 >Re: why are floats flakey? (From: Ondra Cada <email@hidden>)
 >Re: why are floats flakey? (From: Raphael Sebbe <email@hidden>)

  • Prev by Date: Re: NSURLRequest and HTTP PUT?
  • Next by Date: Re: Avoiding == and = mixup in if statements
  • Previous by thread: Re: why are floats flakey?
  • Next by thread: Re: why are floats flakey?
  • Index(es):
    • Date
    • Thread