开发者

How can i read the decimal character of my computer?

开发者 https://www.devze.com 2023-02-06 11:20 出处:网络
I would like to get the decimal character with vb.net In Greek the decimal character is \",\" while in other countries they have \".\" as decimal character.

I would like to get the decimal character with vb.net In Greek the decimal character is "," while in other countries they have "." as decimal character.

So how can i read, with .net wh开发者_JS百科at is the decimal character?


Use CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator.


Look at these properties:

CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator
CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator
CultureInfo.CurrentCulture.NumberFormat.PercentDecimalSeparator
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号