c# - Non-English numeric formatting in Visual Studio -


in english-us, decimal separator symbol "." if want write result of 100 + 25/100, 100.25 (obviously).

how write in constant in visual studio if i'm french developer living in france? in france use comma (",") decimal seperator.

will write

const double x = 100.25

or

const double x = 100,25

thank you

you write programs in c#, not in english. use syntax of c#.

const float x = 100.25 

when show information non-englsih user can format in appropriate view.

for ex.:

messagebox.show(x.tostring().replace(".", ",")); // or special format functions 

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -