There's more than one way to do things | |
PerlMonks |
Re^5: Portability of floor(log(N))by toolic (Bishop) |
on Mar 14, 2018 at 17:31 UTC ( [id://1210898]=note: print w/replies, xml ) | Need Help?? |
Using POSIX::log10() looks like the simplest solution. I will attempt to pester the tester with a modified version of FormatEng.pm.
Do you think I can simplify it by replacing POSIX::log10(1000) with 3, or will it be better to keep your code as-is?
In Section
Seekers of Perl Wisdom
|
|