Turn scientific into fixed in UI
-
hi all
in my code the output of the final line will be like this 1e+06
now i want to turn into fixed number and dont know how to do it.
in console standard c++ i do this like this:@
cout<<fixed<<z;
@@void MainWindow::on_pushButton_2_clicked()
{
QString b;
float x,y,z;
x=ui->lineEdit_3->text().toLong();
y=ui->lineEdit_4->text().toLong();
z=x*y;
z=(float)z/100;
cout<<fixed;
ui->textBrowser_2->setText(b.setNum(z));}@