问题描述:

I am having many models which contain properties type double like this one:

public class SearchViewModel

{

public double val { get; set; }

}

I get the val value like 2.875

However, when i pass to my view, I got the value 2,875, the . of the 2.875 is transformed to a ,

Same things happens back when I got the . in my view, it is transform to a . in my controller, which crash my program

I am in France, but I am having a us chrome language and a windows in english, the program that I am making is a multi language ( en, fr, es), I think it is something to do with culture but don' t know how to set it up so I have control over what is displayed. Any indications or direction on the direction where i should look for ?

Thanks

相关阅读:
Top