Skip to content

Digit Separators #20589

@JohnLBevan

Description

@JohnLBevan

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 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.

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions