I am converting a vb application to a php application. It is all about financing. This is where I get the problem; in fact, the method of rounding values ββin php is different from the vb application.
We store the values ββof 14 accounts and the distribution amount. In this 5 of them have 0.01 discrepancies. We have listed below a table of 14 accounts with their distribution volume.
β’ Account Number
β’ Before applying the round function, the actual value of the distribution amt
β’ Rounding of distribution volume in VB
β’ Rounding up the distribution volume in PHP

From this it can be seen that the value of 0.01 discrepancy is due to the conflict behavior of the round function between VB and PHP. How to solve this problem, I need the same amount as VB.
source share