Title: Digit Separators · Issue #20589 · PowerShell/PowerShell · GitHub
Open Graph Title: Digit Separators · Issue #20589 · PowerShell/PowerShell
X Title: Digit Separators · Issue #20589 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement Similar to what we now have in C#, it would be great to introduce digit separators to PowerShell, so we can enter numbers in a more legible way; e.g. $myVar = 1_000_000 Today we can get away with ...
Open Graph Description: Summary of the new feature / enhancement Similar to what we now have in C#, it would be great to introduce digit separators to PowerShell, so we can enter numbers in a more legible way; e.g. $myVar...
X Description: Summary of the new feature / enhancement Similar to what we now have in C#, it would be great to introduce digit separators to PowerShell, so we can enter numbers in a more legible way; e.g. $myVar...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/20589
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Digit Separators","articleBody":"### Summary of the new feature / enhancement\n\nSimilar to what we [now have in C#](https://github.com/dotnet/roslyn/issues/216), it would be great to introduce digit separators to PowerShell, so we can enter numbers in a more legible way; e.g.\r\n\r\n```powershell\r\n$myVar = 1_000_000\r\n```\r\n\r\nToday we can get away with converting a string as below; but this then makes our code culture dependent.\r\n\r\n```powershell\r\n$myVar = [int]'1,000,000'\r\n```\r\n\r\nThis relates to #13590 in that both are to do with formatting numbers for legibility; only this request is for formatting the input/code, whilst #13590 is for formatting the output.\r\n\n\n### Proposed technical implementation details (optional)\n\n_No response_","author":{"url":"https://github.com/JohnLBevan","@type":"Person","name":"JohnLBevan"},"datePublished":"2023-10-27T12:30:45Z","url":"https://github.com/PowerShell/PowerShell/issues/20589"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3a9e2395-a00e-ee7a-4d7a-848d1dfacd4e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A15C:2C8B07:BEC25F:1085539:6AFD4349 |
| html-safe-nonce | f2653efc84291df58debc26693c97a2df35f8b0d4d0cdb079996673160a0c59e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTVDOjJDOEIwNzpCRUMyNUY6MTA4NTUzOTo2QUZENDM0OSIsInZpc2l0b3JfaWQiOiIzMjY4NTIxMDgyNDI3ODg0MzYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2a4e802d4227382796e93015e1db858da2025890393a21cd6c2b3802b14d9cef |
| hovercard-subject-tag | issue:1965431865 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/20589/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7bbaaba032d67f052b25ec3b8f037e6a912708a60a1d97c9fd39db6065157664/PowerShell/PowerShell/issues/20589 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7bbaaba032d67f052b25ec3b8f037e6a912708a60a1d97c9fd39db6065157664/PowerShell/PowerShell/issues/20589 |
| og:image:alt | Summary of the new feature / enhancement Similar to what we now have in C#, it would be great to introduce digit separators to PowerShell, so we can enter numbers in a more legible way; e.g. $myVar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JohnLBevan |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width