Hello,
I need to convert a string into a large number (I am using double because it has to have decimal places)
Can someone please tell me why when I pass inCode:double ConvertStringToDouble(string s) { try { double d = 0.0d; d = stod(s); return d; } catch (exception ex) { return -1; } }
string mystr = "2532068"
it comes out as
2.53207e+06
Thanks in advance!