In .net, how do I choose between a Decimal and a Double

前端 未结 3 1517
南旧
南旧 2020-12-03 03:23

We were discussing this the other day at work and I wish there was a Stackoverflow question I would point people at so here goes.)

  • What is the difference betwe
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 04:18

    SQL Server Its also worth mentioning that decimal in SQL Server maps to Decimal and Nullable Decimal in the .net framework. While float in sql server maps to Double and Nullable Double. Just in case you end up dealing with a database app.

    Oracle I no longer work with oracle as you can see it is crossed out in my profile information :), however for those who do work with oracle here is an MSDN article mapping the oracle data types:

    http://msdn.microsoft.com/en-us/library/yk72thhd(VS.80).aspx

提交回复
热议问题