Skip to content

fix formatting for values <1000#157

Open
hugovergnes wants to merge 1 commit intofacebookresearch:mainfrom
hugovergnes:feature/fix_formatting
Open

fix formatting for values <1000#157
hugovergnes wants to merge 1 commit intofacebookresearch:mainfrom
hugovergnes:feature/fix_formatting

Conversation

@hugovergnes
Copy link

Fixes a small formatting issues for values below 1000. The number of significant digit would be ignored.

# Before 
print(_format_size(4.843658346, sig_figs=3)) --> 4.843658346
# After
print(_format_size(4.843658346, sig_figs=3)) --> 4.844

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 29, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 29, 2026

@bottler has imported this pull request. If you are a Meta employee, you can view this in D91776028.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant