Skip to content

Commit

Permalink
Merge pull request #18 from CottaCush/Fix/overflow_error
Browse files Browse the repository at this point in the history
Fix: Rounding Error On Display During Entry
  • Loading branch information
rasheedsulayman committed Apr 4, 2021
2 parents b458ce6 + 4a1c211 commit 938f33a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class CurrencyInputWatcher(
decimalFormatSymbols.groupingSeparator.toString(),
currencySymbol
)
val parsedNumber = fractionDecimalFormat.parse(numberWithoutGroupingSeparator)!!
val parsedNumber = numberWithoutGroupingSeparator.toBigDecimal()
val selectionStartIndex = editText.selectionStart
if (hasDecimalPoint) {
fractionDecimalFormat.applyPattern(
Expand Down

0 comments on commit 938f33a

Please sign in to comment.