Convert Decimal to String

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shendkar1980
    New Member
    • Feb 2008
    • 1

    Convert Decimal to String

    converting decimal to string i.e 123.456 to string, I get wrong output : zero is add to end of string i.e. i get answer 123.4560

    how to over come this error :
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by shendkar1980
    converting decimal to string i.e 123.456 to string, I get wrong output : zero is add to end of string i.e. i get answer 123.4560

    how to over come this error :
    Did you use Decimal.ToStrin g()?
    Post the code that you used.

    Comment

    • Sameerlucky
      New Member
      • Feb 2008
      • 6

      #3
      Shendkar,

      Guess below syntax might b helpful to u...

      stringVal = System.Convert. ToString(decima lVal);

      Cheers,
      Sameer

      Comment

      Working...