What controls CurrencyPositivePattern in .NET.

At startup

var x = 10.0M;

Console.WriteLine(typeof(Program).Assembly.ImageRuntimeVersion);

var culture = System.Globalization.CultureInfo.GetCultureInfo("da-DK");

Console.WriteLine(culture.NumberFormat.CurrencyPositivePattern);
Console.WriteLine(x.ToString("C", culture));

We see the difference when using different versions of the frame.

v2.0.5072
2
kr 10,00

against

v4.0.30319
3
10,00 kr.

Also, why should I see different machines NumberFormat.CurrencyPositivePattern . Is it platform specific or OS related?

40,00 kr. vs kr. 20.00

+4
source share
1 answer

Check control panel> Clock, language and region> Change date, time or number format> Advanced settings

enter image description here

0
source

Source: https://habr.com/ru/post/1696328/


All Articles