0

I need your help on converting double to string

Here is my example double value

-981676354.3150035

4.920001983642578

I Want to convert that numbers

but If I use ToStinrg function like this

double value = -981676354.3150035;
var str = value.ToString("R");

It return -981676354.31500351 by adding 1 to the end

or

return -981676354.315004 by rounds up

I entirely want to convert double value itself to a string (ex -981676354.3150035 => -981676354.3150035)

Please Help!

Thanks in advance for your answers

NamNam
  • 11

0 Answers0