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?
Actually, rather than use floating point, which will cause rounding errors, I think you want to use integers, along with an indication of where the decimal point actually is. I haven't been able to quickly determine if Jade does this.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads