Sep-20-2019, 10:01 PM
(Sep-20-2019, 09:31 PM)mlieqo Wrote: No it's not 689.88, because 344.94 is a price with tax. If I want to calculate a total price:That's no the same as you posting
285.07 * 2 * 1.21
344.94 * 2
and it can not be round to 689.88
without cheating as explained.>>> n = 285.07 * 2 * 1.21 >>> n 689.8693999999999 >>> round(n, 3) 689.869 >>> round(n, 2) 689.87 >>> round(n, 1) 689.9There are basic rules of rounding you can try online Rounding Numbers Calculator .