"be consistent" | |
PerlMonks |
Re^2: how to seperate array after a certain number of elements?by ikegami (Patriarch) |
on Sep 20, 2007 at 19:53 UTC ( [id://640224]=note: print w/replies, xml ) | Need Help?? |
It's dangerous to repeatedly add decimal numbers since many of them are periodic in binary and therefore cannot be stored precisely. This includes 0.2.
The following is a safer, simpler and easier to read (since "5" actually appears) version of your second snippet:
In Section
Seekers of Perl Wisdom
|
|