implemented global rounding method and precision for get cost