Does anyone know of a module that implements fixed precision
numbers in Perl? Our program does monetary calculations. Using floating point numbers to represent money is dangerous because of rounding and precision issues.
Currently, our program represents monetary values as integers with a scaling factor. This means that the scaling factor shows up everywhere the program formats and rounds values. It also gets stored in the database which is really messy. I would like to use a class that encapsulates the calculation and formatting logic.