Difference between revisions of "Call duration mismatch between CDR and GUI"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with '-') |
|||
Line 1: | Line 1: | ||
== Example of the problem == | |||
[[File:duration_mism1.png]] | |||
<br><br> | |||
[[File:duration_mism2.png]] | |||
== Why its shown like that == | |||
Prices in CSV are rounded to the 2 digits after the point. | |||
As real call prices are many digits after the point, the rounding takes place only when all prices are summed. | |||
You can't expect to add not rounded prices together and compare to the rounded prices added together and get the same result. | |||
Example: | |||
0.005 + 0.005 = 0.01 | |||
If you export 0.005 to CSV with 2 digits after the point precision, you will see: 0.01 and 0.01 | |||
If you will add 0.01+0.01=0.02 | |||
And then see what happens if you try to compare: 0.01 to 0.02 |
Latest revision as of 07:10, 13 September 2021
Example of the problem
Why its shown like that
Prices in CSV are rounded to the 2 digits after the point.
As real call prices are many digits after the point, the rounding takes place only when all prices are summed.
You can't expect to add not rounded prices together and compare to the rounded prices added together and get the same result.
Example:
0.005 + 0.005 = 0.01
If you export 0.005 to CSV with 2 digits after the point precision, you will see: 0.01 and 0.01
If you will add 0.01+0.01=0.02
And then see what happens if you try to compare: 0.01 to 0.02