30,997
edits
No edit summary |
|||
| Line 27: | Line 27: | ||
* Total inc tax (we sum total without tax + total tax): 2.48 + 0.25 = '''2.73''' | * Total inc tax (we sum total without tax + total tax): 2.48 + 0.25 = '''2.73''' | ||
First thing we can note is that result from method 1 differs of result from method 2. | First thing we can note is that result from method 1 differs of result from method 2. Difference is only 0.01 but if you have n times the same line, difference can be higher but always lower or equal to (n-1)*0.01. | ||
Also if you decide to round up or down instead of "to the nearest", you will have same problem (for example with a rounding down, try with a quantity of 2 on line 2 and you will have same differences between method 1 and 2). Difference will just appears with different data but will still occurs. | Also if you decide to round up or down instead of "to the nearest", you will have same problem (for example with a rounding down, try with a quantity of 2 on line 2 and you will have same differences between method 1 and 2). Difference will just appears with different data but will still occurs. | ||