Skip to content

docs: clarify display precision contract - #22

Merged
tisonkun merged 2 commits into
mainfrom
codex/clarify-display-contract
Jul 31, 2026
Merged

docs: clarify display precision contract#22
tisonkun merged 2 commits into
mainfrom
codex/clarify-display-contract

Conversation

@tisonkun

@tisonkun tisonkun commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • distinguish exact ByteSize formatting from the approximate, f64-backed Display wrapper in the crate overview
  • document precision loss, automatic scale selection, formatter precision, round-trip limits, and infinity behavior in the API docs
  • verify that the unit-boundary bug fixed by fix: ideal_unit_std picks the wrong unit near power-of-unit boundaries bytesize-rs/bytesize#175 does not reproduce because bsize selects scales iteratively; no formatting behavior or tests change

@tisonkun
tisonkun merged commit a08cf45 into main Jul 31, 2026
16 checks passed
@tisonkun
tisonkun deleted the codex/clarify-display-contract branch July 31, 2026 14:26
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