jszym20

jszym20

  • NA
  • 20
  • 0

Round for Decimal

Jan 20 2005 7:20 AM
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

Answers (2)