# Locale decimal input test report

> Compare how a local fixture parses a decimal entered with a comma. Follow the expected numeric value through the faulty and corrected implementations.

Source: https://cueapril.com/reports/locale-decimal-input
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Does a comma decimal separator change the value saved by the API?

The original implementation failed the “French decimal input” check. Expected 125 and observed 100. The corrected implementation met both expectations on the same inputs.

The saved amount is 125 minor units for either supported decimal separator. Compare two versions of a small, runnable fixture. The inputs, expected values and recorded results are public.

## What the control case missed

A dot-separated amount hides the parser assumption. The comma form 1,25 is accepted as a prefix of 1 by the faulty parser, silently lowering the saved amount from 125 minor units to 100.

Observed values from the two implementations

| Check | Expected | Original | Corrected |
| --- | --- | --- | --- |
| English decimal input | 125 | 125 | 125 |
| French decimal input | 125 | 100 | 125 |

## What to check before merging

Define accepted locales and reject ambiguous input before persisting. The correction handles the two simple decimals in this fixture. Grouping separators, negatives and currency precision need their own product rules.

## Reproduce the recorded result

Download the [Node.js fixture](/examples/qa-regressions/run.mjs) and run node run.mjs locale-decimal-input with Node.js 24. Compare the printed JSON with the [recorded results](/examples/qa-regressions/results.json). This is a locally executed model of the regression, using synthetic inputs. It covers the rule shown here. Hosted runs, browser behaviour and customer PRs require their own evidence.

## Primary documentation

- [Runnable synthetic regression fixtures](/examples/qa-regressions/run.mjs)
- [Recorded output for all twelve fixtures](/examples/qa-regressions/results.json)

By Cue April. Updated 2026-12-01.

## Related

- [Worked test reports](https://cueapril.com/reports): Replay a real mobile pricing defect from a Cue April pull request. Explore runnable reports for checkout, search, data migrations and other regressions.
- [Pull request testing](https://cueapril.com/use-cases/pull-request-testing): See what a pull request test report should show before you merge. Follow a failing checkout check through the fix and inspect a real PR report.
