RE: BUG! Erratic for loop behavior
- Posted by dm31 at uow.edu.au Mar 24, 2002
- 464 views
> > for i = 31.4 to 31.5 do... should work perfectly. Or am I just been > > dumb? > > I wouldn't use the word "dumb". But consider the fraction 1/3. in decimal it's > 0.3333333333333333-> infinity. How can that be represented in binary? It > can't. It's only perfectly accurate in base3 or integer multiples of 3. I think i > remember an experimental computer that used 3 voltage levels per bit, but it > was slow and buggy, and that's all i remember of it. Back in the 8087@1mhz Yeh I've heard of the trinary computer too, But trinary is still used. Alot of cmos chips involved in security systems use trinary encoders. I understand the 1/3, BUT the for loops that this thread started with should still work because they can be represented!