mirror of
https://github.com/hmalik144/Farmr.git
synced 2026-01-31 02:41:49 +00:00
Revert "Rounding bug fix"
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package com.appttude.h_mal.farmr.utils
|
package com.appttude.h_mal.farmr.utils
|
||||||
|
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.math.RoundingMode
|
|
||||||
import java.text.NumberFormat
|
import java.text.NumberFormat
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Calendar
|
import java.util.Calendar
|
||||||
@@ -27,7 +26,7 @@ fun Float.formatAsCurrencyString(): String? {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun Float.formatToTwoDpString(): String {
|
fun Float.formatToTwoDpString(): String {
|
||||||
return toBigDecimal().setScale(2, RoundingMode.HALF_DOWN).toString()
|
return toBigDecimal().setScale(2).toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun String.dateStringIsValid(): Boolean {
|
fun String.dateStringIsValid(): Boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user