| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5895762e-3848-29a3-c8f0-76da35e409b8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EC38:22E601:54E7E4:721E25:6B00311A |
| html-safe-nonce | d237cd78d6b526b81e4435ebf5aaf5e7c1f70250f10f54d11357686df3d78a27 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzM4OjIyRTYwMTo1NEU3RTQ6NzIxRTI1OjZCMDAzMTFBIiwidmlzaXRvcl9pZCI6Ijg4OTEyMDQyNDE1NDk0MzkyNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b1ee947272ec9051cab1a613b6efa396c8571fe927c4a3ac2b3cc931ffa85f29 |
| hovercard-subject-tag | pull_request:1306224353 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/4865/files |
| twitter:image | https://avatars.githubusercontent.com/u/28527915?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/28527915?s=400&v=4 |
| og:image:alt | Contributes to #1656
I've only recently sprouted my Rustacean legs so let me know if there are better ways to achieve this. I'm sure there will be!
'{:n}'.format(999999.1234)
'{... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/RustPython/RustPython/pull/4865/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F4865%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F4865%2Ffiles |
| 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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython |
| Reload | https://github.com/RustPython/RustPython/pull/4865/files |
| Reload | https://github.com/RustPython/RustPython/pull/4865/files |
| Reload | https://github.com/RustPython/RustPython/pull/4865/files |
| RustPython | https://github.com/RustPython |
| RustPython | https://github.com/RustPython/RustPython |
| Code | https://github.com/RustPython/RustPython |
| Issues195 (195) | https://github.com/RustPython/RustPython/issues |
| Pull requests144 (144) | https://github.com/RustPython/RustPython/pulls |
| Discussions | https://github.com/RustPython/RustPython/discussions |
| Actions | https://github.com/RustPython/RustPython/actions |
| Projects | https://github.com/RustPython/RustPython/projects |
| Wiki | https://github.com/RustPython/RustPython/wiki |
| Security and quality | https://github.com/RustPython/RustPython/security |
| Insights | https://github.com/RustPython/RustPython/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| youknowone | https://github.com/youknowone |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| JazzGlobal:format_float_code_n | https://github.com/JazzGlobal/RustPython/tree/format_float_code_n |
|
Conversation
18
| https://github.com/RustPython/RustPython/pull/4865 |
|
Commits
14
| https://github.com/RustPython/RustPython/pull/4865/commits |
|
Checks
0
| https://github.com/RustPython/RustPython/pull/4865/checks |
|
Files changed
| https://github.com/RustPython/RustPython/pull/4865/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/4865/files |
|
'n' support for float format
| https://github.com/RustPython/RustPython/pull/4865/files#top |
|
Show all changes
14 commits
| https://github.com/RustPython/RustPython/pull/4865/files |
|
c1a390b
N and n support for float format.
JazzGlobal Apr 7, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/c1a390bee918f045272c46cbf166070544ed4419 |
|
03a8990
Satisfy github actions
JazzGlobal Apr 8, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/03a89901fa99c5cf38c0a400fced45147a90cf63 |
|
a937e8e
cargo fmt
JazzGlobal Apr 8, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/a937e8eefe42f0fdd32776a18d550fa5adf7c03f |
|
9627142
Added tests
JazzGlobal Apr 8, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/9627142fa133f43e23fb54b723e922d66c0a3d87 |
|
d8c3f11
Fixed tests and N case functionality
JazzGlobal Apr 9, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/d8c3f1167c8cbd445a1f6630a15456cf182cdbc1 |
|
1fd13c8
Merge pull request #1 from JazzGlobal/okay
JazzGlobal Apr 9, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/1fd13c8794887c07c942dffb6815878d128a4c5a |
|
f17f7a4
Fixed possibility of precision being larger than magnitude.
JazzGlobal Apr 9, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/f17f7a4bdf57e135fca12b40e00bbb2f2974cc89 |
|
e5fd98d
Lint error.
JazzGlobal Apr 9, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/e5fd98d2f9cae7537b1e762d3354c0792a4e5308 |
|
d08a36e
Lint Error Part 2.
JazzGlobal Apr 10, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/d08a36edde6bf9e5815c4e9f80a318a759b9c747 |
|
f46e88f
Unmark as expected fail.
JazzGlobal Apr 10, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/f46e88fa77987c51158048958f923c1e0096ef19 |
|
ae47876
Merge branch 'format_float_code_n' of https://github.com/JazzGlobal/R…
JazzGlobal Apr 10, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/ae4787623ed16aea3738c1d7cdf26e8d5acf7667 |
|
a6e7a55
Fixed tests
JazzGlobal Apr 10, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/a6e7a55453a046726c951e5d29d8a5e6afecad27 |
|
8c76113
cargo fmt
JazzGlobal Apr 10, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/8c76113c85ccfb5709b27fa396ac13679d72d403 |
|
509e811
Reuse GeneralFormat. �
JazzGlobal Apr 15, 2023
| https://github.com/RustPython/RustPython/pull/4865/commits/509e8119b21ff4a3451de6d44fed6539bebade0e |
|
Clear filters
| https://github.com/RustPython/RustPython/pull/4865/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/4865/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/4865/files |
|
test_enum.py
| https://github.com/RustPython/RustPython/pull/4865/files#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c |
|
test_format.py
| https://github.com/RustPython/RustPython/pull/4865/files#diff-abdba5791a8f0143685a423eba82d53f951df55e45d87b5bea45a1e3acd43351 |
|
format.rs
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
builtin_str.py
| https://github.com/RustPython/RustPython/pull/4865/files#diff-6f5712e86d81a34dbc4b8137f08f43eccb65ef4b7bd548bfd6de8cc723ce41e7 |
| Lib/test/test_enum.py | https://github.com/RustPython/RustPython/pull/4865/files#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c |
|
View file
| https://github.com/JazzGlobal/RustPython/blob/509e8119b21ff4a3451de6d44fed6539bebade0e/Lib/test/test_enum.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/4865/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-8467f9fbbff81abf26d87a8dbbf0e0c866157971948010e48cc73539251a9e4c |
| Lib/test/test_format.py | https://github.com/RustPython/RustPython/pull/4865/files#diff-abdba5791a8f0143685a423eba82d53f951df55e45d87b5bea45a1e3acd43351 |
|
View file
| https://github.com/JazzGlobal/RustPython/blob/509e8119b21ff4a3451de6d44fed6539bebade0e/Lib/test/test_format.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/4865/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-abdba5791a8f0143685a423eba82d53f951df55e45d87b5bea45a1e3acd43351 |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-abdba5791a8f0143685a423eba82d53f951df55e45d87b5bea45a1e3acd43351 |
| common/src/format.rs | https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
View file
| https://github.com/JazzGlobal/RustPython/blob/509e8119b21ff4a3451de6d44fed6539bebade0e/common/src/format.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/4865/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-5f89937501181ccd889dd62519036a866bd48d22ad115e027400b9642afd7cef |
| extra_tests/snippets/builtin_str.py | https://github.com/RustPython/RustPython/pull/4865/files#diff-6f5712e86d81a34dbc4b8137f08f43eccb65ef4b7bd548bfd6de8cc723ce41e7 |
|
View file
| https://github.com/JazzGlobal/RustPython/blob/509e8119b21ff4a3451de6d44fed6539bebade0e/extra_tests/snippets/builtin_str.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/4865/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-6f5712e86d81a34dbc4b8137f08f43eccb65ef4b7bd548bfd6de8cc723ce41e7 |
|
| https://github.com/RustPython/RustPython/pull/4865/files#diff-6f5712e86d81a34dbc4b8137f08f43eccb65ef4b7bd548bfd6de8cc723ce41e7 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |