Why differs German and Swiss Number to String Conversion?
Type (New-Object System.Globalization.CultureInfo("de-CH")).numberFormat
to get numberformatinfo for de-CH
You'll get:
CurrencyDecimalDigits : 2CurrencyDecimalSeparator : .IsReadOnly : FalseCurrencyGroupSizes : {3}NumberGroupSizes : {3}PercentGroupSizes : {3}CurrencyGroupSeparator : 'CurrencySymbol : Fr.NaNSymbol : n. def.CurrencyNegativePattern : 2NumberNegativePattern : 1PercentPositivePattern : 1PercentNegativePattern : 1NegativeInfinitySymbol : -unendlichNegativeSign : -NumberDecimalDigits : 2NumberDecimalSeparator : .NumberGroupSeparator : 'CurrencyPositivePattern : 2PositiveInfinitySymbol : +unendlichPositiveSign : +PercentDecimalDigits : 2PercentDecimalSeparator : .PercentGroupSeparator : 'PercentSymbol : %PerMilleSymbol : ‰NativeDigits : {0, 1, 2, 3...}DigitSubstitution : None
As you can see both NumberDecimalSeparator and CurrencyDecimalSeparator are .
No, it looks like Switzerland uses .
as the decimal separator (like normal people do), so this is correct output: