//[ui](../../index.md)/[com.yandex.payment.sdk.ui](index.md)/[formatSum](format-sum.md)

# formatSum

[ui]\
fun [formatSum](format-sum.md)(context: Context, settings: [PaymentSettings](../../../core/core/com.yandex.payment.sdk.core.data/-payment-settings/index.md)): String

fun [formatSum](format-sum.md)(context: Context, total: String, currencyCode: String): String

fun [formatSum](format-sum.md)(context: Context, total: Double, currencyCode: String): String

fun [formatSum](format-sum.md)(total: Double): String
