precision issue solve for discount template