Prevent Double value being converted to N.NNNNNNE+NN in result
Posted on 2014-02-12
I have this rather simple statement:
... double.TryParse(p.ToString(), out q) ...
p.ToString() is 123400000000000000
q is 1.234E+18
q is declared as a double. I need q to be stored as '123400000000000000' because I need to package it to a web service later and the java based web service is crapping out because it does not see '1.234E+18' as a double.