This is the first time I'll be writing an application (personal) that involves money computation.One of the potential issues I found is with regards to precision and repeating decimal.Ex.1 / 3 = 0.3330.333 * 3 = 0.999Where'd the 0.001 go?What's the correct way of doing this operation without losing 0.001 that may add up in the future.
What's the correct way of computing money in programming (precision, repeating decimal)
programming practices;language agnostic