Compare quantity to unit rounding instead of zero

issue3965
review8391002