SyntaxFix
Write A Post
Hire A Developer
Questions
The string you have here contains a floating point number with a unit. I'd recommend splitting that string into a number and unit part with QString::split().
QString::split()
Then use toDouble() to get a floating point number and round as you want.
toDouble()