Skip to content

Generalize the warning about combining number literals with decimal places with integer-type suffixes #13384

Open

Description

Type of issue

Missing information

Feedback

The warning in question currently reads:

The syntax permits a double real literal to have a long-type suffix

However, it isn't just the [long] type suffix (l or L) that the behavior applies to, it is ALL integer-type suffixes (y, uy, s, us, ...)

E.g., 1.5y and 2.5y both result in [sbyte] value 2.

Page URL

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_Numeric_Literals?view=powershell-7.7

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.7/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md

Author

Sean Wheeler (@sdwheeler)

Platform Id

dac0e2f9-5d6c-27aa-4439-31eec1460c43

Document Id

39e82455-dbc6-c9a1-5476-e7577feace13

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions