format

abstract fun format(price: Float?, currency: String?): String?

This function format price and currency symbol

Parameters

price

Represents the numerical value of the price

currency

Represents the currency symbol