code: def format_price(self, price):
          
          # ensure we have a float
          price = api.to_float(price, default=0.0)
          dm = self.get_decimal_mark()
          cur = self.get_currency_symbol()
          price = "%s %.2f" % (cur, price)
          return price.replace(".", dm)
docs: Formats the price with the set decimal mark and currency