So here my question...
Like you may know, there are functions for finding the length of a string (myString.length()), but is it possible to find the length of a double?? More specifically if i have myDouble = 4.53 then i guess the length would be 3.
Example:
Expand|Select|Wrap|Line Numbers
- void myFunction(string inputString)
- {
- double tmpDbl;
- //convert string to float
- tmpDbl = atof(inputString.c_str());
- this->myDouble = tmpDbl;
- //I NEED HELP HERE!!!
- this->myLength = ??? (the length of tmpDbl)
- }