What data type should I use to represent money in C#?

后端 未结 7 2037
醉话见心
醉话见心 2020-12-04 19:15

In C#, what data type should I use to represent monetary amounts? Decimal? Float? Double? I want to take in consideration: precision, rounding, etc.

相关标签:
7条回答
  • 2020-12-04 20:06

    Use decimal and money in the DB if you're using SQL.

    0 讨论(0)
提交回复
热议问题