Skip to content

fix: preserve fractional bytes in naturalsize - #462

Open
manshi-n wants to merge 1 commit into
python-humanize:mainfrom
manshi-n:fix/naturalsize-fractional-bytes
Open

manshi-n wants to merge 1 commit into
python-humanize:mainfrom
manshi-n:fix/naturalsize-fractional-bytes

Conversation

@manshi-n

Copy link
Copy Markdown

Summary

  • Preserve fractional byte counts below the base instead of truncating them to integers.
  • Keep existing output for integer byte counts.
  • Add regression tests for fractional values in standard and GNU formats.

Testing

  • py -3.13 -m pytest -q — 746 passed, 112 skipped.
  • git diff --check — passed.

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