Compare commits
2 Commits
50416b5064
...
be0f3cb59b
| Author | SHA1 | Date | |
|---|---|---|---|
| be0f3cb59b | |||
|
|
c740dfe9aa |
@ -10,4 +10,4 @@ def apply_discount(subtotal: float, percent: float) -> float:
|
||||
|
||||
if percent < 0 or percent > 100:
|
||||
raise ValueError("percent must be between 0 and 100")
|
||||
return round(subtotal * (1 - percent / 10), 2)
|
||||
return round(subtotal * (1 - percent / 100), 2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user