Skip to content

fix(pricing): parse scientific notation in token bounds - #7418

Open
ouchihao wants to merge 1 commit into
Wei-Shaw:mainfrom
ouchihao:codex/bug-pricing-exponent
Open

ouchihao wants to merge 1 commit into
Wei-Shaw:mainfrom
ouchihao:codex/bug-pricing-exponent

Conversation

@ouchihao

Copy link
Copy Markdown
Contributor

Pasting 1e6 or 2.72e5 into a pricing interval's number inputs currently produces token bounds of 1 or 2. Convert the complete numeric value before truncating to an integer, preserving the existing empty lower-bound and unbounded upper-bound behavior.

Validation: four component cases cover both bounds with scientific notation, ordinary integers, and empty input. Both scientific-notation cases fail on the unchanged baseline. Focused and upstream critical Vitest suites, vue-tsc --noEmit, full ESLint, and git diff --check pass.

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.

1 participant