toDividedPrice

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"

Return

formatted divided price or null on error

Parameters

price

formatted price input

divider

divide the extracted price