Math::FixedPrecision is another approach to avoiding floating point weirdness.
In reply to Re: weird print behavior by Zed_Lopez in thread weird print behavior by anjiro