hi all
ok this is my code
void MainWindow::on_pushButton_2_clicked()
{
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));
}
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));
}
To copy to clipboard, switch view to plain text mode
i dont know why still show me scientific format in textBrowser?!?
any help will be grateful.
Bookmarks