vncore / com.venuenext.vncore.util / kotlin.Double / centsToCurrency

centsToCurrency

fun Double?.centsToCurrency(default: String = "0.00"): String

Formats incoming amount in cents to a dollar amount string.

Parameters

default - Default amount

This
the Double on which the function is called.

Return
the formatted dollar amount string.