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
Post a Comment