fix(hermes): A percentage must be converted to its decimal form by dividing by 100, not 10. This is a one-line localized calculation fix with no dependency or formatting changes. (incident hermes-code-demo/7)

This commit is contained in:
Hermes Agent 2026-08-07 04:06:18 +00:00
parent f019c79bed
commit 9eeee5761b

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)