csv_excel_display
What Excel DISPLAYS from a STORED value under a numFmt code — the render, not the damage. arXiv 2611.05806 measured it: cell B9 stores 1,000,000 under '$#,##0,' (the TRAILING COMMA SCALES by a thousand) and Excel shows $1,000; six python extractors (markitdown, openpyxl, pandas, unstructured, calamine, Docling) all emit the stored value — every chat assistant and 3 of 4 coding agents tested got budget-approved numbers the human never saw. Feed the stored value (what your extractor gave you) plus the format code (styles.xml); get the display string + the rules said. Closed subset from Microsoft's OWN symbol table with its resolved examples replayed: '#.0,,' + 12200000 -> '12.2'; '(000)' + 12 -> '(012)'; '0%' + 0.5 -> '50%'; '0.00 "dollars"' + 1.23 -> '1.23 dollars'; '#.##' + 8.9 -> '8.9'; display rounding half-away-from-zero (2.5 under '0' -> 3) — and the stored value NEVER changes, only the display. Separators are SYMBOLS in the file (Microsoft states content is locale-invariant): pass the locale you display in and '1234567.891' under '#,##0.00' becomes 1.234.567,89 in de-DE. REFUSED by name: General (column-width dependent), E-notation, date/time codes, [Red], [<] conditions, * fill, _ skip, @ text. Free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "csv_excel_display"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | the STORED number as extracted, e.g. '1000000' or '25604.880000000001' | |
| format | No | the numFmt code, e.g. '$#,##0,' or '#,##0.00' | |
| locale | No | display locale for separators (closed table), default en-US |