Check which decimal separator the system is using?

Check which decimal separator the system is using?

KasperFilipsen
Enthusiast Enthusiast
275 Views
1 Reply
Message 1 of 2

Check which decimal separator the system is using?

KasperFilipsen
Enthusiast
Enthusiast

Is it possible to figure out through code what kind of decimal separator the windows system is using?

 

I've run into an issue when importing a DWG with a preset. If the preset doesn't use the same decimal separator as the system, it doesn't work correctly.

0 Likes
Accepted solutions (1)
276 Views
1 Reply
Reply (1)
Message 2 of 2

KasperFilipsen
Enthusiast
Enthusiast
Accepted solution

I managed to figure out a solution with dotNet

decimalSeparator = (dotNetClass "System.Globalization.CultureInfo").CurrentCulture.NumberFormat.NumberDecimalSeparator
0 Likes