Flash Gordon wrote:

> CBFalconer wrote, On 31/01/08 23:50:

>> Mark McIntyre wrote:

>>> Malcolm McLean wrote:

>>>> "Ido Yehieli" <(E-Mail Removed)> wrote:

>>>>

>>>>> My point was that a float doesn't represent a real number, in

>>>>> fact it doesn't even represent a rational number.

>>>>>

>>>> They are rational numbers. Just not the ratio you passed in as

>>>> decimal.

>>>

>>> You misunderstood - the prev poster was pointing out that you

>>> can't use floats to represent rational numbers. 1/3 was an example.

>> ^-- binary ^-- all

>>

>> Correct as above.

>

> C allows the float to be decimal and it *still* can't represent all

> rational numbers. So you are correct to all "all" but adding

> "binary" is a needless restriction.
Not so. What if the float significand etc. used base 3, or 6, or

9? Then 1/3 could be expressed exactly. "binary" is needed. I

can find nits anywhere.

--

[mail]: Chuck F (cbfalconer at maineline dot net)

[page]: <http://cbfalconer.home.att.net>

Try the download section.

--

Posted via a free Usenet account from

http://www.teranews.com