I have a line of code in a for loop which formats a function ( that returns a float) return value into the appropriate format to be used. QString Value
essentially stores the formatted value.
QString Value;
For(int i = 0; i < NUM; i++) {
Value.sprintf("%1.f", GetValue(0,i)); //need this value
}
Now this gives me the value I need in the correct form, however I require it to be a floating point number to be used. I have tried conventional means such as sstream, type cast and static cast but none have worked
Any help is appreciated and feel free to ask more questions for clarification and I will do my best to respond.