Is there a function which takes string converts it to decimal WITHOUT rounding ?

  • Thread starter Thread starter Guest
  • Start date Start date
CobraStrikes,
Which version of VS.NET are you using?

VS.NET 2003 (.NET 1.1) will give the following:

Decimal.Parse("19.121") will give you 19.121 decimal
Decimal.Parse("12.567 " ) will give you 12.567 decimal

Notice the 3 decimal places.

I seem to remember that by default VS.NET 2002 (.NET 1.0) will by default
display 2 decimal places on the Decimal, while VS.NEt 2003 (.NET 1.1) gives
you all the decimals the Decimal contains...

Hope this helps
Jay
 
Back
Top