Files
calctext/_bmad-output/implementation-artifacts/10-4-answer-column-formatting.md
2026-03-16 19:54:53 -04:00

40 lines
1.5 KiB
Markdown

---
epic: 10
story: 10.4
title: "Answer Column Formatting"
status: draft
---
## Epic 10 — Notepad UX (Cross-Platform Spec)
**Goal:** Consistent editor behavior specified once, implemented per platform.
### Story 10.4: Answer Column Formatting
As a user,
I want to control how numbers are displayed in the answer column,
So that results match my preferred notation and precision.
**Acceptance Criteria:**
**Given** a user opens the formatting settings
**When** they configure global decimal places (0-10), notation (standard, scientific, SI), thousands separator (comma, period, space, none), and currency symbol position (prefix, suffix)
**Then** all answers in the sheet render according to these settings
**Given** a user right-clicks (or long-presses) on a specific answer
**When** they select "Format this line" from the context menu
**Then** they can override the global formatting for that line only
**And** the per-line override persists when the sheet is saved and reopened
**Given** a global format is set and a per-line override exists
**When** the sheet is evaluated
**Then** lines with overrides use their specific formatting
**And** all other lines use the global formatting
**Given** a user selects "Scientific notation" for a line
**When** the result is `1500000`
**Then** the answer column displays `1.5e6` (or `1.5 x 10^6` depending on rendering)
**Given** a user selects "SI notation" for a line
**When** the result is `1500000`
**Then** the answer column displays `1.5M`