When should I use double instead of decimal?

后端 未结 12 1758
Happy的楠姐
Happy的楠姐 2020-11-22 10:51

I can name three advantages to using double (or float) instead of decimal:

  1. Uses less memory.
  2. Faster because flo
12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 11:55

    If you need to binary interrop with other languages or platforms, then you might need to use float or double, which are standardized.

提交回复
热议问题