I have a question for decimal value for set on model. In my SQL server, displaySize field type is decimal(18,1) How can I set the decimal type in model?
When I set like
public decimal displaySize { get; set; }
It display like 21.00 not 21. If I put 3.7, then it come out 3.70.
How do I set decimal format? It sounds simple question, but I am beginner MVC 3 currently. Could you give some answer? Thanks.