We are currently using System.Decimals to represent numbers in the .NET application we are developing. I know that decimals are a design to minimize errors due to rounding, but I also know that some numbers, like 1/3, cannot be represented as decimal numbers, so some calculations will have a slight rounding error. I believe that the magnitude of this error will be very small and insignificant, but my colleague does not agree. Therefore, I would like to evaluate the order of magnitude of the error due to rounding in our application. Say, for example, we calculate the current number of "deals" and will do about 10,000 "deals" per day, and there are about 5-10 decimal operations (add, sub, div, mul, etc.) To calculate the total amount, new the total for each transaction received, what would be the order of the tycoon with a round error? The answer with the procedure for calculating this will also be pleasant, so I can learn to do it for myself in the future.
source share