Is it true that String.Format works in two ways: if we use an embedded format such as C, N, P .... will it take into account the locale settings? if we use custom format code like #, ## 0.000, will it not take into account the locale settings?
In my code I use this method
String.Format ("{0: #. ## 0,000}", value);
because my country uses a comma as a decimal separator
but the result is still equal: 1,234.500, as if he were considering the point as a decimal separator.
Please, help!
source
share