2014-02-23 37 views

回答

7

有精確的值,在C#中使用decimal,也decimal(m, n)在SQL Server中。 floatdoublereal只是不準確,將易受舍入誤差 - 我會避免這些。

See this other SO question (and its answers)金錢與小數在SQL Server的討論,以及爲什麼你應該避免money在SQL Server中。