Think about Loose Coupling | |
PerlMonks |
Re^6: Anyone with XS experience willing to create a high performance data type for Perl?by jdporter (Paladin) |
on Nov 14, 2021 at 14:51 UTC ( [id://11138809]=note: print w/replies, xml ) | Need Help?? |
I could have said that 31 and 32 are different orders of magnitude (log of 31 is 1.49, log of 32 is 1.51) That would mean you still weren't getting it. You have to round after doing the difference, not before. You could also think of it like this, which is mathematically equivalent: round( log10( X / Y ) ).
In Section
Seekers of Perl Wisdom
|
|