You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 converting a string as below; but this then makes our code culture dependent.
$myVar= [int]'1,000,000'
This 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.
I like the idea, but, unfortunately, it looks like this was previously decided against (in the context of introducing support for [bigint] and binary number literals):
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.
Today we can get away with converting a string as below; but this then makes our code culture dependent.
This 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.
Proposed technical implementation details (optional)
No response
The text was updated successfully, but these errors were encountered: