All scenes
Red to Green
Bug Fix & Test
checkout-webfix/tax-rounding
PROMPT · 0%
AGENT REASONING
Start from the failing amountA three-seat discounted cart is one cent higher than the invoice.
EXPECTED5,407 cents$54.07
≠RECEIVED5,408 cents$54.08
Subtotal5,997¢
−Discount1,002¢rounded too early
+Tax412¢
=Failing total5,408¢
◆Tracing the checkout total from cart lines to invoice
−Math.round((value + Number.EPSILON) * 100) / 100
·Patch pending — failing line preserved above
MONEY INVARIANTCalculate in cents. Round once per line.
RED GREEN
About this scene
Bug Fix & Test
A failing checkout test exposes a rounding edge case, the implementation is corrected, and the focused suite turns green before shipping.
Designed for deep work, streaming backgrounds, and the quiet pleasure of watching software take shape.