double->int comparison