Lets take two floating decimal numbers and . If we multiply these values the result will be . If u round using Math.round() then the result will be . But in accounting procedures we take to 2 decimal points which make it and then after rounding this we find The solution for this: Math.round(Math.rint((NUM1 *NUM2)* 100.0) / 100.0)