I am looking for an open-source set of components that can help manage numeric business-type data (i.e. quantities, costs, prices, currencies) where the number of decimal places can be defined, and mathematics operations (add, subtract, multiply, divide) are defined as methods, to cover rounding issues, etc. Does such a set of generic components exist? IBM offered something like this in Websphere with their Business Components, but its not open-source. It seems like they should be complex data storage classes, that ultimately map to storage of floats to the RDBMS, but would be accessed in java via the above methods.
I could write the code myself, but it sure seems like a wheel reinvention to me. Any ideas?