Decimal/Rounding Calculation Definition

From OpenPetra Wiki
Revision as of 11:09, 13 December 2010 by Wolfganguhr (talk | contribs) (→‎Reference)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

General

  • Every decimal shall have a precision
  • The precision of the result of an operation is depended of the precision of the operands

Question to answer

  • How does an operation effects the precision?
  • When should be rounded? During calculation? At presentation of the value at the GUI?
  • How do we handle error propagation? Should we divide as late as possible? (Each number is internally a fraction of two numbers)

Which calculations are done from the business side?

Reference

Multiple Currencies