Actually, the statement that .3 repeating == 1/3 is not *entirely* correct. The more you repeat the 3, the closer it gets to actually being 1/3, but it is NEVER EXACTLY 1/3. Try this: divide 9 by 3. The answer is 3. Now multiply 9 by .3. You get 2.7. Multiply by .33 and you get 2.97. Keep adding 3s and you keep adding 9s in the product. What you never get, however, is 3. It may get so close to 3 as to make a distinction meaningless (depending on what you're doing), but 2.99...7 != 3. For the same reason, .33... != 1/3. Apply that to .99... and you get very close to 1, but never quite there. So I chalk the whole thing up to a floating point rounding error. =-)
~Cybercosis
nemo accipere quod non merere
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.