clear decimals before writing