in reply to splitting a decimal number..
This solution is far from perfect, but it *works* (as long as the number stringifies normally)
Sometimes you can get away with doing stringy things on numbers. It can be a time saver if you're in a hurry and out of inspiration.my ($y, $z) = split /\./, $x;
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: splitting a decimal number..
by renz (Scribe) on Jan 05, 2005 at 23:00 UTC |