The answer to this could become FAQ of the month!<br><br>I'm developing a book-keeping app in CF and am currently working on the Trial Balance.<br><br>Everything's fine until I check whether the accounts balance. Then, on my test database:<br>a) (A - B - C + D) gave a non-zero result, i.e the accounts don't balance although the sub-totals A, B, C, and D tell me they do!<br>b) (A - B - (C - D)) gave a zero result<br>although the 2 formulae are logically the same and A, B, C and D display correctly when formatted to 2 decimal places by the DecimalFormat function.<br><br>When I displayed the result of formula (a) without any formatting I saw -9.09494701773E-013, so it's a floating-point rounding error, i.e. A, B, C and D (sub-totals) are themselves not accurate to 2 decimal places. In that case with different data formula (a) might give the right answer and formula (b) the wrong one.<br><br>Unfortunately CF's Round function rounds to the nearest integer and does not have an option to round to 2 decimal places.<br><br>Shopping cart applications must have a way of getting this kind of totalling and sub-totalling right.<br><br>Does anyone know how to avoid the problem?<br><br>Background info:<br>* A, B, C and D are themselves the sums of various sets of monetary values.<br>* All monetary values are from an Access DB and are of data type "currency".<br>* I'm using CF 4.01 on Win 98 with Personal Web Server for testing.<br>