Skip to content

2025 08 30 format#119

Merged
thedavidmeister merged 25 commits intomainfrom
2025-08-30-format
Sep 2, 2025
Merged

2025 08 30 format#119
thedavidmeister merged 25 commits intomainfrom
2025-08-30-format

Conversation

@thedavidmeister
Copy link
Copy Markdown
Contributor

@thedavidmeister thedavidmeister commented Sep 1, 2025

Motivation

Solution

Checks

By submitting this for review, I'm confirming I've done the following:

  • made this PR as small as possible
  • unit-tested any new functionality
  • linked any relevant issues or PRs
  • included screenshots (if this involves a front-end change)

Summary by CodeRabbit

  • New Features

    • Formatting accepts a configurable significant‑figures limit and now emits scientific notation for very large/small magnitudes; sign, zero, integral and fractional display improved. Public formatting API updated to accept the sig‑figs parameter.
  • Bug Fixes

    • Stricter precision‑loss detection when parsing, including additional overflow checks for extreme inputs.
  • Tests

    • Expanded formatting/parsing tests, added sig‑figs unit and regression tests, and updated expected outputs for scientific notation.
  • Documentation

    • Updated comments describing off‑chain, non‑gas‑sensitive formatting behavior.

Loading
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