Handle 0 in rounding functions.