Skip to content

Commit

Permalink
Fixed floating point logic
Browse files Browse the repository at this point in the history
  • Loading branch information
1Git2Clone authored Jun 12, 2024
1 parent ef82d74 commit 217effe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CurrencyConversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def input_currency_value(prompt: str, output: OutputJSON) -> float:

try:
split = amount.split(".")
if len(split) == 2 and len(split[1]) > 2:
if len(split) == 2 and len(split[1]) < 3:
print(value_error)
continue
return float(amount)
Expand Down

0 comments on commit 217effe

Please sign in to comment.