fix rounding comparison failure