Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looking for components for complex numeric data

 
Randy Johnson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Erik Bengtson
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this deals with units conversion
http://jade.dautelle.com/
 
Loren Rosen
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic