I’m converting double to string this way: myDouble.ToString("0.0000000000000000") I’ve noticed that on some machines . is used as delimiter while on another machines , is used. I guess this depends on regional settings in Windows.
I use my output in another program which always expect ,to be as delimeter (regardless of current regional settings). So I want c# to force to always use , ignoring regional settings. How to do that?
You can use a custom
NumberFormatInfo:When created like this you’ll be extending the “invariant” formatting info.
The code above would output
10,1560000000000000to the console.