Hydra
Bug library · display · math

Currency format

Cents are not zero-padded, so $58.00 renders as $58.0 and $4.00 as $4.0.

Breaks: main, holdout · expected from Kane: unknown · Tests whether Kane compares money strings exactly or semantically.

The diff

lib/money.ts
- const rest = String(abs % 100).padStart(2, "0");
+ const rest = String(abs % 100);

Matches

No recorded match has planted this bug yet.