convert char* to double and back
C / C++ / MFC
5
Posts
3
Posters
0
Views
1
Watching
-
I have a char* that holds a numeric value of for example: 172,500 and I want to multiply this by another number and write the contents back to a new char*. Could someone give some example code on how to easily achieve this?
-
I have a char* that holds a numeric value of for example: 172,500 and I want to multiply this by another number and write the contents back to a new char*. Could someone give some example code on how to easily achieve this?
-
There is a (,) in the string. What I think I will do is write a class that can cater for all eventualities, as there is also a possibility of the number being in scientific notation, just to make matters worse!