I have a textbox in which I inform a value of an item that should be divided to 10 people registered in the system, but divided by ratio, who has more item receives more of the new value informed, who has less will receive less.
The system is dividing correctly, but always with 0.001 cents more or less, not hitting the account, for example if I reported 100 in value and inserted in the bank when making the sum is always 99.999 or 100.001 not closing the account, I'm using
Math.Round((decimal)valor, 3)
To get only 3 houses after the comma, but always make that difference in the end, can anyone help me? Thanks in advance.