René's URL Explorer Experiment


Title: Carry `metric()` to the next SI prefix when rounding reaches 1000 by gaoflow · Pull Request #328 · python-humanize/humanize · GitHub

Open Graph Title: Carry `metric()` to the next SI prefix when rounding reaches 1000 by gaoflow · Pull Request #328 · python-humanize/humanize

X Title: Carry `metric()` to the next SI prefix when rounding reaches 1000 by gaoflow · Pull Request #328 · python-humanize/humanize

Description: Python humanize functions. Contribute to python-humanize/humanize development by creating an account on GitHub.

Open Graph Description: Summary metric() can emit a four-digit mantissa with a too-small SI prefix: >>> humanize.metric(999.9, "V") '1000 V' # expected '1.00 kV' >>> huma...

X Description: Summary metric() can emit a four-digit mantissa with a too-small SI prefix: >>> humanize.metric(999.9, "V") '1000 V' # expected &#3...

Opengraph URL: https://github.com/python-humanize/humanize/pull/328

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d4232366-1cff-7219-491a-aea80f0f8814
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD608:14BBA:2CCF55C:3CEF489:6A545412
html-safe-nonced7de4c3397f2a9d1ffb3cbb005511114361e4ec6138a6c0730d3bf65d698d378
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjA4OjE0QkJBOjJDQ0Y1NUM6M0NFRjQ4OTo2QTU0NTQxMiIsInZpc2l0b3JfaWQiOiI4MjkzOTI5OTEwMjE0NjExOTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5dcbfb5d2e478e71e57f09a35dfcbe63e4c0f2436f21ee2604253dfcc504a554
hovercard-subject-tagpull_request:3876235983
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python-humanize/humanize/328/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/135207ab34b27c7e78f3e556c626fb79a555fd37441c8713d9031a06db089308/python-humanize/humanize/pull/328
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/135207ab34b27c7e78f3e556c626fb79a555fd37441c8713d9031a06db089308/python-humanize/humanize/pull/328
og:image:altSummary metric() can emit a four-digit mantissa with a too-small SI prefix: >>> humanize.metric(999.9, "V") '1000 V' # expected '1.00 kV' >>> huma...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegaoflow
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/python-humanize/humanize git https://github.com/python-humanize/humanize.git
octolytics-dimension-user_id62149795
octolytics-dimension-user_loginpython-humanize
octolytics-dimension-repository_id466683324
octolytics-dimension-repository_nwopython-humanize/humanize
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id466683324
octolytics-dimension-repository_network_root_nwopython-humanize/humanize
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-humanize/humanize/pull/328#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F328
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F328
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python-humanize%2Fhumanize
Reloadhttps://github.com/python-humanize/humanize/pull/328
Reloadhttps://github.com/python-humanize/humanize/pull/328
Reloadhttps://github.com/python-humanize/humanize/pull/328
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
python-humanize https://github.com/python-humanize
humanizehttps://github.com/python-humanize/humanize
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
Notifications https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Fork 115 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Star 736 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Code https://github.com/python-humanize/humanize
Issues 12 https://github.com/python-humanize/humanize/issues
Pull requests 12 https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality 0 https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
Code https://github.com/python-humanize/humanize
Issues https://github.com/python-humanize/humanize/issues
Pull requests https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
hugovkhttps://github.com/hugovk
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
gaoflow:fix/metric-si-prefix-carryhttps://github.com/gaoflow/humanize/tree/fix/metric-si-prefix-carry
Conversationhttps://github.com/python-humanize/humanize/pull/328
Commits2 (2)https://github.com/python-humanize/humanize/pull/328/commits
Checkshttps://github.com/python-humanize/humanize/pull/328/checks
Files changedhttps://github.com/python-humanize/humanize/pull/328/files
Carry metric() to the next SI prefix when rounding reaches 1000https://github.com/python-humanize/humanize/pull/328#top
hugovkhttps://github.com/hugovk
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
gaoflow:fix/metric-si-prefix-carryhttps://github.com/gaoflow/humanize/tree/fix/metric-si-prefix-carry
https://github.com/gaoflow
gaoflowhttps://github.com/gaoflow
Jun 16, 2026https://github.com/python-humanize/humanize/pull/328#issue-4674917481
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
https://github.com/gaoflow
Carry metric() to the next SI prefix when rounding reaches 1000https://github.com/python-humanize/humanize/pull/328/commits/02dc4d2322572cef787c938c1cb3208f7f9c8ae9
02dc4d2https://github.com/python-humanize/humanize/pull/328/commits/02dc4d2322572cef787c938c1cb3208f7f9c8ae9
https://github.com/patchwright
patchwrighthttps://github.com/patchwright
Jun 17, 2026 https://github.com/python-humanize/humanize/pull/328#ref-pullrequest-4686243308
Fix naturalsize() rounding rollover at unit boundaries #329 https://github.com/python-humanize/humanize/pull/329
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Jun 30, 2026https://github.com/python-humanize/humanize/pull/328#issuecomment-4845179890
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
Codecovhttps://app.codecov.io/gh/python-humanize/humanize/pull/328?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
976484ahttps://app.codecov.io/gh/python-humanize/humanize/commit/976484a655df046aa6849f440a4f0cd44fc4918c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
4b69e61https://app.codecov.io/gh/python-humanize/humanize/commit/4b69e613e6d9ce02267c45b5f69f8d9cc780cef7?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Flaghttps://app.codecov.io/gh/python-humanize/humanize/pull/328/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
macos-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/328/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
ubuntu-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/328/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
windows-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/328/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Harnesshttps://app.codecov.io/gh/python-humanize/humanize/pull/328?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Test Analyticshttps://docs.codecov.com/docs/test-analytics
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
https://github.com/apps/codspeed-hq
codspeed-hqhttps://github.com/apps/codspeed-hq
Jun 30, 2026https://github.com/python-humanize/humanize/pull/328#issuecomment-4845188712
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
Open the report in CodSpeed to investigatehttps://app.codspeed.io/python-humanize/humanize/branches/gaoflow%3Afix%2Fmetric-si-prefix-carry?utm_source=github&utm_medium=comment-v2&utm_content=comparison_issues
acknowledge them on CodSpeedhttps://app.codspeed.io/python-humanize/humanize/branches/gaoflow%3Afix%2Fmetric-si-prefix-carry?utm_source=github&utm_medium=comment-v2&utm_content=acknowledge
test_metrichttps://app.codspeed.io/python-humanize/humanize/branches/gaoflow%3Afix%2Fmetric-si-prefix-carry?uri=tests%2Ftest_benchmarks.py%3A%3Atest_metric&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark
CodSpeed MCPhttps://docs.codspeed.io/ai/mcp?utm_source=github&utm_medium=comment-v2&utm_content=mcp_tip_regression
4b69e61https://github.com/python-humanize/humanize/commit/4b69e613e6d9ce02267c45b5f69f8d9cc780cef7
c2c410chttps://github.com/python-humanize/humanize/commit/c2c410c1521a3b1eb3efef52f3b06c2e42f7b92b
https://app.codspeed.io/python-humanize/humanize/branches/gaoflow%3Afix%2Fmetric-si-prefix-carry?utm_source=github&utm_medium=comment-v2&utm_content=button
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
https://github.com/hugovk
hugovkhttps://github.com/hugovk
changelog: Fixed https://github.com/python-humanize/humanize/issues?q=state%3Aopen%20label%3A%22changelog%3A%20Fixed%22
Jun 30, 2026https://github.com/python-humanize/humanize/pull/328#event-27385812056
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Jun 30, 2026 https://github.com/python-humanize/humanize/pull/328#pullrequestreview-4601773886
View reviewed changes https://github.com/python-humanize/humanize/pull/328/files/02dc4d2322572cef787c938c1cb3208f7f9c8ae9
hugovkhttps://github.com/hugovk
https://github.com/python-humanize/humanize/pull/328#pullrequestreview-4601773886
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
src/humanize/number.pyhttps://github.com/python-humanize/humanize/pull/328/files/02dc4d2322572cef787c938c1cb3208f7f9c8ae9#diff-862c2e0f37aa7577e5dd817684c11b540737ced618bc760547ef7d99d03e8482
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
https://github.com/hugovk
Add newline after if blockhttps://github.com/python-humanize/humanize/pull/328/commits/4b69e613e6d9ce02267c45b5f69f8d9cc780cef7
4b69e61https://github.com/python-humanize/humanize/pull/328/commits/4b69e613e6d9ce02267c45b5f69f8d9cc780cef7
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Jun 30, 2026https://github.com/python-humanize/humanize/pull/328#event-27386103844
https://github.com/hugovk
hugovkhttps://github.com/hugovk
June 30, 2026 15:31https://github.com/python-humanize/humanize/pull/328#event-27386109867
https://github.com/hugovk
hugovkhttps://github.com/hugovk
7574e0chttps://github.com/python-humanize/humanize/commit/7574e0cc377d80db0d2756fc2c5e0b8799a6f8b4
Jun 30, 2026https://github.com/python-humanize/humanize/pull/328#event-27386222266
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
https://github.com/gaoflow
gaoflowhttps://github.com/gaoflow
Jul 6, 2026 https://github.com/python-humanize/humanize/pull/328#ref-pullrequest-4821354694
Fix intword() rounding carry for very large numbers #346 https://github.com/python-humanize/humanize/pull/346
https://github.co/hiddenchars
https://github.com/python-humanize/humanize/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F328
https://github.com/hugovk
hugovk https://github.com/hugovk
https://github.com/python-humanize/humanize/pull/328/files/02dc4d2322572cef787c938c1cb3208f7f9c8ae9
changelog: Fixed https://github.com/python-humanize/humanize/issues?q=state%3Aopen%20label%3A%22changelog%3A%20Fixed%22
Please reload this pagehttps://github.com/python-humanize/humanize/pull/328
https://github.com/gaoflow
https://github.com/hugovk
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.