|
| garrett (12) | |||
| 3.459583967924D-05 I have this number above stored in a text file. I extract the value in a string and convert it to a double value and get the number below. 3.45958396792399 The number should actually read : 0.0000345958396792 The code below is what i used to convert it from string to double.
Any suggestions on how i should handle the string with the number " 3.459583967924D-05 " stored in it? | |||
Last edited on | |||
| herbert1910 (48) | |||
| change your D to an E? 3.459583967924D-05 3.459583967924E-05 it displays ok for me. never heard of D Notation. maybe this?
i didn't try the replace code. | |||
| mcleano (733) | |
| http://www.cplusplus.com/articles/numb_to_text/#s2n | |
| garrett (12) | |||
This is what I came up with... I think it works as it should, haven't come across any bugs. Thanks for the help. | |||
| gcampton (782) | |
| oh em gee, you stole my name :P | |
This topic is archived - New replies not allowed.
