Skip to content

Commit

Permalink
Fix NumberFormatException when "." is the only input (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrlzy authored Sep 3, 2024
1 parent 263966a commit e885fee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/dev/arkbuilders/rate/data/CurrUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ fun String.toDoubleSafe() =
when {
this == "" -> 0.0
this == "-" -> 0.0
this == "." -> 0.0
else -> this.toDouble()
}

0 comments on commit e885fee

Please sign in to comment.