Rounding in the calculation of the granted discount
If the following decimal digits are less than 5, 50, 500, 5000..., the previous one does not change: Ex.: 0.342 -> 0.34 | 0.344999 -> 0.34
If the following decimal digits are greater than 5, 50, 500, 5000..., the previous one is increased: Ex.: 0.346 -> 0.35 | 0.345001 -> 0.35
If the following decimal digits are equal to 5, 50, 500, 5000, then the above applies:
if it is even, the previous one does not change: Ex.: 0.3050 -> 0.30
if it is odd, the previous one is increased: Ex: 0.3150 -> 0.32
The discount granted is a percentage to two decimal places of the original amount to be paid. Calculate the discount value, rounding to 2 decimal places, and the value obtained is subtracted from the original value payment. If the rounding of the discount is R$0.00 then it is considered that there is no discount on the transaction.
The maximum transaction value to grant a discount is limited to R$4,500,000,000.00, and the largest Valid discount percentage is 100.00%.
Note: this item was included only to provide information on how rounding is done by CliSiTef, because the calculation is carried out automatically by CliSiTef, based on the percentage known in advance before of the transaction, applying the percentage on the total amount sent in the sales transaction of Itaú (Iti) digital wallets. For example: if the discount percentage to be calculated is 10% and the total amount is R$100.00, after the calculations CliSiTef will return field 148 with value 9000 (= R$90.00) and field 4029 with value value 1000 (= R$10.00).