Skip to content

ToString formatted output incorrect on net5.0 #47670

@KevinRansom

Description

@KevinRansom

This code:

            Console.WriteLine("{0}", 30000.ToString("N", new CultureInfo("de-DE")));

Produces different output when compiled netcoreapp3.1 and net5.0, note: 3 decimal places in net5.0 and 2 decimal places in netcoreapp3.1
Net5.0

30.000,000

netcoreapp3.1

30.000,00

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions