Skip to content

fix(parse): support scientific notation in string parsing - #297

Open
vjymisal0 wants to merge 1 commit into
vercel:mainfrom
vjymisal0:fix-scientific-notation
Open

fix(parse): support scientific notation in string parsing#297
vjymisal0 wants to merge 1 commit into
vercel:mainfrom
vjymisal0:fix-scientific-notation

Conversation

@vjymisal0

Copy link
Copy Markdown

Fixes #284 by updating the regex in \parse()\ to correctly handle scientific notation (e.g. \1.5e3ms\ or \5.696545792019405e+297y). This ensures that output generated by \ ormat()\ for extremely large numbers can be successfully parsed back by \parse(), restoring the round-trip contract between the two functions.

Copilot AI lite review requested due to automatic review settings August 20, 2026 16:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

format() produces output that parse() cannot parse back (roundtrip failure with large numbers)

3 participants