Skip to content

Studio: scale spreadsheet figures in thousands or millions with decimals - #16590

Merged
danielhanchen merged 1 commit into
unslothai:mainfrom
NilayYadav:scale-spreadsheet-cells-thousands-millions
Nov 4, 2026
Merged

danielhanchen merged 1 commit into
unslothai:mainfrom
NilayYadav:scale-spreadsheet-cells-thousands-millions

Conversation

@NilayYadav

@NilayYadav NilayYadav commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Spreadsheet cells formatted to show thousands or millions with a decimal, such as $#,##0.0,,"M" or #,##0.0,"K", reached the model unscaled with the suffix still added. A cell Excel shows as $1,234.6M was indexed as $1,234,567,890.0M, so answers about project sources, knowledge bases and attached .xls files quoted figures a million times too large. The same formats without decimals, like $#,##0,,"M", were already right.

The trailing commas after the decimal places now scale the value the same way the commas before the decimal point already did, so these cells read as Excel shows them in both .xlsx and .xls files.

An .xlsx with $#,##0.0,,"M" and #,##0.0,"K" columns added as a project source, then asked for the Cloud revenue and user count:

Before (main) After (this PR)
Passage and answer read $1,234,567,890.0M and 1,234,567.0K Passage and answer read $1,234.6M and 1,234.6K, as Excel shows them

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T19:32:53.506530Z 0c81192 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 0c81192cff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@NilayYadav

Copy link
Copy Markdown
Collaborator Author

pre-commit.ci run

@danielhanchen danielhanchen self-assigned this Nov 4, 2026
@danielhanchen
danielhanchen merged commit f3892ae into unslothai:main Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants