|Just another Perl shrine|
Re^3: log() and int() problemby LanX (Bishop)
|on Dec 25, 2012 at 21:11 UTC||Need Help??|
> I solved my issue
you're very optimistic.
I delved into Devel::Peek and I'm still not sure which type casting or crossed thresholds produced different results for 2 and 3.
Anyway you're voyaging dangerous grounds, don't be surprised if your Float to Int conversions breaks again.
Better rely on on already shown pure integer arithmetic for your integer (sic) tests. (rule of thumb!)
UPDATE: improved code