We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc18f27 commit cb0648eCopy full SHA for cb0648e
billinghelper/src/main/kotlin/com/vojtkovszky/billinghelper/PriceUtil.kt
@@ -57,9 +57,9 @@ object PriceUtil {
57
}
58
59
private fun roundDigitString(digitValue: Double): String {
60
- var priceValueString = "?"
61
- if (digitValue > 1000.0) priceValueString = digitValue.roundToLong().toString()
62
- else if (digitValue <= 1000.0) priceValueString = String.format("%.2f", digitValue)
+ val priceValueString =
+ if (digitValue > 1000.0) digitValue.roundToLong().toString() else
+ String.format("%.2f", digitValue)
63
return priceValueString.replace(".", ",")
64
65
0 commit comments