in reply to Floating point problems

Instead of int(), I prefer to use one of the functions in Math::Round.
It should work perfectly the first time! - toma