System.Data.SqlTypes bug?
I am trying to build one part of my app to round as if SQL server was rounding, and I am using this line of code:
Public Function Round(value as Decimal) as Decimal
Return Decimal.Parse(System.Data.SqlTypes.SqlDecimal.Roun d( _
System.Data.SqlTypes.SqlDecimal.Parse(value.ToStri ng),2).ToString)
End Function
And I send this number : 233.3305 and it returns 233.34. That's NOT RIGHT!! Is there anything I'm missing?
"A spirit with a vision is a dream with a mission"
__________________
\"A spirit with a vision is a dream with a mission\"
|