0
I have an application that, depending on the format of the portion that the user selects, the system will return the amount of that portion. For example: Assuming an order of R $ 50.000,00 in two times, the system will store in the bank two records containing R $ 25.000,00.
The problem is time to calculate a "broken" value. For example: The user generates an order of R $ 100.000,00 and installment he has three times, the system will keep three results of R$ 33,333.33.
The problem is time to get the resulting value, because if I know that the value of the portion was 3 and multiply the value R $ 33.333,33 get R$ 99.999,99, that is, that 1 centavo
ends up missing what there in front generates a discrepant value when obtaining certain reports.
I’ve come to realize that tax money systems do this to perfection...
How can I generate plots (mostly broken), containing an extra penny when needed?
I do not know what was your difficulty, I made a test here stating the value
100.000,00
without the point and the comma, and in multiplication obtained the exact value. You could edit your question and put the code ?– NoobSaibot