code: def _saferound(value, decimal_places):
      
      try:
          f = float(value)
      except ValueError:
          return ''
      format = '%%.%df' % decimal_places
      return format % f
docs: Rounds a float value off to the desired precision