use consistent rounding, fix #66872