qt qstring to float

Solutions on MaxInterview for qt qstring to float by the best coders in the world

showing results for - "qt qstring to float"
Lilly
29 Nov 2016
1QString str1 = "1234.56";
2double val = str1.toFloat();             // val == 1234.56
Raphael
09 Aug 2019
1float pi = 3.14; 
2QString b = QString::number(pi);