two decimal places for decimal/money field

前端 未结 4 2144
半阙折子戏
半阙折子戏 2020-12-31 07:02

I have a table with money field in my database. I have created entity and created decimal property for that money field. When the value of that field is displayed on My MVC3

4条回答
  •  清歌不尽
    2020-12-31 07:15

    Here is everything you need to know about formatting strings.

    http://blog.stevex.net/string-formatting-in-csharp/

提交回复
热议问题