in reply to Re^4: Portability of floor(log(N))
in thread Portability of floor(log(N))
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?
my $e = floor( POSIX::log10($num) / 3 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Portability of floor(log(N))
by pryrt (Abbot) on Mar 14, 2018 at 18:22 UTC |