How to convert double to string without scientific notation

  • Thread starter Thread starter ssaran046
  • Start date Start date
S

ssaran046

Guest
Hi Team,

In C#, I can't convert double to string without scientific notation when the value length is greater than 15.

For example,

1. If the input is (1234567890123456789.12345).ToString() then the

Actual output was "1.23456789012346E+18" but

Expected output is "1234567890123456789.12345"

2. If the input is (123456789012345.12345).ToString() then the

Actual output was "123456789012345" but

Expected output is "1234567890123456789.12345"

3. If the input is (12345678901234.123).ToString() then the

Actual output was "12345678901234.1" but

Expected output is "12345678901234.123"


So please provide the solution to resolve this issue.


Regards,

Saravanan


G.Saravanan

Continue reading...
 
Back
Top