Secondly, Perl treats floats just like C does. The difference is that it is constantly going one way in the above code, and you are printing a higher resolution.
Try using a printf to format your output to something less than one part in a hundred trillion accuracy, and see how much longer it takes for the round-off error to become visible.
In reply to Re (tilly) 1: Strange concerning floats
by tilly
in thread Strange concerning floats
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |