Decimal/Rounding Calculation Definition: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
(Created page with '= 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 a…')
 
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:


= Which calculations are done from the business side? =
= Which calculations are done from the business side? =
= Reference =
[[Multiple Currencies]]

Latest revision as of 11:09, 13 December 2010

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