note
toolic
Using POSIX::log10() looks like the simplest solution. I will attempt to pester the tester with a modified version of FormatEng.pm.
<p>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?
<c>
my $e = floor( POSIX::log10($num) / 3 );
</c>
1210737
1210859