SyntaxFix
Write A Post
Hire A Developer
Questions
Don't forget to check if the conversion was successful!
bool ok; auto str= tr("1337"); str.toDouble(&ok); // returns 1337.0, ok set to true auto strr= tr("LEET"); strr.toDouble(&ok); // returns 0.0, ok set to false