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…')
 
Line 9: Line 9:


= Which calculations are done from the business side? =
= Which calculations are done from the business side? =
= Reference =
see: https://sourceforge.net/apps/mediawiki/openpetraorg/index.php?title=Multiple_Currencies

Revision as of 12:01, 8 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

see: https://sourceforge.net/apps/mediawiki/openpetraorg/index.php?title=Multiple_Currencies