Round for Decimal
Hi,
I have problem. I writed code
Decimal.Round(System.Convert.ToDecimal( 8930.305), 2)
it return 8930.30,
but
Decimal.Round(System.Convert.ToDecimal( 8930.3051), 2)
return 8930.31,
If I write in SQL
select Round(8930.305, 2) from dual;
it return 8930.31
So what can I do? I must to have same result. I thing that
Decimal.Round(System.Convert.ToDecimal( 8930.305), 2)
should return 8930.31. What can I do? I have two different result.
Please help me, Asia
jszym20Posted Jan 21, 2005, 1:37 AM
joy.simpsonPosted Jan 20, 2005, 3:33 PM