> try some other base than the boring 2:)
0.2 decimal is 0.0121012101210121..... in base 3 (well, you did ask
for something different :O)
It is not an irritational number because it can be represented by the
ratio of two integers - 1/5 decimal or 1/12 base 3 (hey, I've already
had my fingers burned once on that one!)
I can't think of anything to say in this post that's relevant
specifically to the QL so I'll shut up on the subject unless it gets
back on topic ;)
Ian.
> -----Original Message-----
> From: Richard.Zidlicky
> Sent: 21 June 2001 13:29
> To: ql-users
> Cc: Richard.Zidlicky
> Subject: Re: [ql-users] NEXT in FOR-loop
>
>
> On Thu, Jun 21, 2001 at 10:41:31AM +0100, [EMAIL PROTECTED] wrote:
> > Hello,
> >
> > > ...an irrational number is defined to be any number not
> > > representable as the ratio of two integers.
> >
> > I know that definition, but isn't an infinite number of decimal (or
> > binary) places what you end up with as a result?
> >
> > I accept that 1/3 is not irrational - I am guilty of using the term
> > inaccurately - but it is still one of those values that cannot be
> > represented exactly in a limited precision number system
> such as that
> > on the QL, and other computers - allegedly :)
>
> try some other base than the boring 2:)
>
> Btw do you consider 0.2 irrational? Try to represent it in binary.
>
> Bye
> Richard
>
>
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.