MOR Rounding

From Kolmisoft Wiki
Jump to navigationJump to search

Rounding in the MOR GUI is done only when showing the final result.

Values are not rounded in the database. Why not? For example: 0.027 + 0.027 = 0.054. Rounded, this comes to 0.05. But if you round each step, you get 0.03 + 0.03 = 0.06. This figure is not as accurate as 0.05.


Billsec rounding

Asterisk calculates real billsec in milliseconds and rounds up to the nearest value to seconds to get billsec.

Example:

Real billsec is 41.15533,8, but billsec is 42.

Why is rounding UP to the nearest integer?

Because it is common practice to round UP to the nearest integer in favor of our customers.

This statement resulted from extensive consultations with software developers across various industries, including telecommunications, accounting, and banking.

Explanation:

As system developers, we support our clients, not their clients' clients.

NOTE: rounding type can be changed in mor.conf file (billsec_round_function)