in reply to Re: weird print behavior
in thread weird print behavior
I wouldn't worry about questioning the question that much -- I think it's valuable feedback to the OP.
Your meaning is a little murky here, but if I can clarify, adding an increment that contains 'a little error' means you can end up with 'a significant error' after a 'sufficiently large' number of times through the loop.
Another way to put it comes from my Dad, who did IBM 370 assembler and COBOL from back in the 60s -- If you test for equality with '6.0' but your loop counter actually contains '5.99999999', your loop is either going to continue forever or go one loop too far.
Sure. Just try to make your .sig 'smallish' when displayed on the site. A one or two line post followed by an eight line .sig looks kinda silly. :)
Sure thing. We're all here to learn and help each other; I'm just trying to return the favour and dodge the occasional flaming arrow.
|
|---|