Skip to content

feat(builtins): add numfmt builtin#922

Merged
chaliy merged 4 commits intomainfrom
feat/issue-908-numfmt
Mar 31, 2026
Merged

feat(builtins): add numfmt builtin#922
chaliy merged 4 commits intomainfrom
feat/issue-908-numfmt

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 31, 2026

Summary

  • Implements GNU numfmt-compatible number conversion builtin
  • Supports --to/--from (si/iec/iec-i/auto), --suffix, --padding, --round, --format, --field, --delimiter
  • Includes unit tests and spec tests covering positive and negative scenarios

Test plan

  • Unit tests for parsing, formatting, rounding
  • Spec tests for --to=iec, --to=si, --from=iec, --from=si, roundtrip, stdin, suffix, padding, error cases
  • Clippy clean, all existing tests pass

Closes #908

chaliy added 4 commits March 31, 2026 18:21
Implements GNU numfmt-compatible number conversion with --to/--from
(si/iec/iec-i/auto), --suffix, --padding, --round, --format, --field,
and --delimiter options. Includes spec tests and unit tests.

Closes #908
@chaliy chaliy merged commit 72b012b into main Mar 31, 2026
27 checks passed
@chaliy chaliy deleted the feat/issue-908-numfmt branch March 31, 2026 21:25
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.

feat: add numfmt builtin

1 participant