code: def round(self, x):
          
          fraction, scaled_x, scale = self._get_fraction(x)
          rounddown = fraction < .5
          if rounddown:
              result = math.floor(scaled_x) / scale
          else:
              result = math.ceil(scaled_x) / scale
          self._record_roundoff_error(x, result)
          return result
docs: Round the given value.
          
          @param x: to round
          @type x: numeric