fix(hermes): Convert the supplied whole-number percentage to its decimal fraction correctly; this restores the expected totals without changing validation or rounding behavior. (incident hermes-code-demo/12)

This commit is contained in:
Hermes Agent 2026-08-07 13:16:23 +00:00
parent 00ca2c9d26
commit 9803378bb1

View File

@ -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)