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 );
In reply to Re^5: Portability of floor(log(N))
by toolic
in thread Portability of floor(log(N))
by toolic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |