---
title: "Verify decimal-comma quantity entry preserves magnitude"
description: "Test a localized quantity form with decimal commas and grouping separators, comparing the displayed value with the exact persisted numeric amount."
canonical_url: "https://vostride.com/agent-library/localization/decimal-comma-quantity.md"
md_url: "https://vostride.com/agent-library/localization/decimal-comma-quantity.md"
content_kind: "recipe"
topic: "localization"
---

# Verify decimal-comma quantity entry preserves magnitude

Test a localized quantity form with decimal commas and grouping separators, comparing the displayed value with the exact persisted numeric amount.

## Risk

Locale parsing bugs can save 125 instead of 1.25 while the input still looks correct. Choose a fractional value and inspect numeric persistence separately from the formatted confirmation so shared formatting code cannot validate itself.

## Fixtures

- An owned sandbox inventory form using a documented decimal-comma locale selected through product settings or an external browser fixture.
- A disposable item with zero starting quantity and a product requirement defining accepted decimal and grouping separators.
- A read-only inventory oracle exposing the numeric quantity in a locale-independent representation and a unique adjustment reason.

## Steps

1. Open the fixture item and verify its displayed starting quantity corresponds to zero in the selected locale.
2. Enter the locale-formatted equivalent of 1.25 units and verify the form retains the intended decimal separator without silently turning it into a whole number.
3. Submit the adjustment with the unique reason and verify the confirmation displays the localized equivalent of 1.25.
4. Leave and reopen the item, verify the localized quantity remains 1.25, and inspect the independent numeric oracle for an exact stored amount of 1.25.
5. Review the adjustment history and verify one delta of 1.25 rather than 125 or 0.0125, with the original reason and test actor.

## Expected results

- The stored numeric magnitude is exactly 1.25 independent of display formatting.
- The localized input, confirmation, and reopened detail agree on that quantity.
- One adjustment event records the intended delta and no separator-induced extra operation.

## False-pass traps

- Checking only the formatted field can reuse the same parsing bug as the display layer.
- An integer fixture would not exercise decimal-separator handling at all.

## Cleanup

- Reverse the sandbox quantity adjustment and restore the account locale preference.

## Use with agent-qa

Adapt this test design to your application's acceptance criteria and configured target using the [recipe execution guide](/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md). External fixture setup and non-UI checks require your own supported hooks or test tooling. Validate the authored test, execute it, and inspect the completed evidence; this recipe is not a recorded test result.

## References

- [agent-qa first test](/docs/agent-qa/guides/first-test.md)
- [agent-qa hooks](/docs/agent-qa/guides/hooks.md)
- [agent-qa test](/docs/agent-qa/configuration/test.md)

- [Localization QA recipes](/agent-library/localization.md)
- [Software factory QA library](/agent-library.md)
