code: def truncate(num, precision=0):
          
          if precision > 0:
              decimal_precision = math.pow(10, precision)
              return math.trunc(num * decimal_precision) / decimal_precision
          return int(Exchange.truncate_to_string(num, precision))
docs: Deprecated, use decimal_to_precision instead