I'm sort of new to c++ but i do have years experience in other languages. So if this is a rediculous question and im just not seeing the obvious answer, don't reserve yourselves, bring on the bluntness
So here my question...
Like you may know, there are functions for finding the length of a string (myString.lengt h()), 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:
So here my question...
Like you may know, there are functions for finding the length of a string (myString.lengt h()), 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:
Code:
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) }
Comment