And also the better counter part in sql server for mapping.
Oh and Decimal! :) +1
Mitch Wheat
2009-03-02 05:44:09
How does Decimal compare to Money (in MSSQL)?
Blorgbeard
2009-03-02 06:16:38
+3
A:
System.Decimal or 'decimal' is a 128-bit data type. Compared to floating-point types, the decimal type has a greater precision and a smaller range, which makes it suitable for financial and monetary calculations.
If you want a numeric real literal to be treated as decimal, use the suffix m or M:
decimal amount = 300.5m;
var dec = 300.5M; // same as above
The decimal is implemented in the CLR and is guaranteed to return the same result regardless of hardware.
JaredPar is right!
John Leidegren
2009-03-02 05:45:26