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.

--t. alex
Life is short: get busy!

In reply to Re: Re: weird print behavior by talexb
in thread weird print behavior by anjiro

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.