PriceUtil

object PriceUtil

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun toDividedPrice(price: String, divider: Int): String?

Convert a formatted price to a formatted price with a given divider. For example: "12.80 EUR" with a divider of 4 will return "4.20 EUR"

Link copied to clipboard
fun toFullPrice(price: String, divider: Int): String?

Convert a formatted price to a formatted price with a given divider. For example: "4.20 EUR" with a multiply of 4 will return "12.80 EUR"