troubleshooting Question

C# How to convert double to string with present all digitals numbers ?

Avatar of dvplayltd
dvplayltdFlag for Bulgaria asked on
.NET Programming
3 Comments1 Solution351 ViewsLast Modified:
      Hi experts!

  Im using C# 2008. I have a double variable which I need to convert to string. With this code it work, but last 2 digitals are truncate. I need all digital, no matter they are 2,6, 10 or more !

 Here you code
 dtDOuble = 40110.440049189812;
 dtDOuble.ToString() is  "40110.4400491898"
Look  last 2 digital are lost.

What code I need to make sure that in string I have all digitals ?
Pratima Pharande

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros