http://www.perlmonks.org?node_id=1054354


in reply to Printf/Sprintf Behavior Change

If one can infer that you are working with currency amounts, then I suggest taking a look at Math::Currency from CPAN to help alleviate/eliminate any rounding errors you encounter before any final formatting.