add rounding according to the specs