Re: turn scientific to fixed
Try:
Code:
ui->textBrowser_2->setText(b.setNum(x*y, 'f'));
Re: turn scientific to fixed
thank you so much.
can you also tell me how can i remove float point for example my output is : 500000.000000
in fact my answer is 5000 and 2 zero before point and 6 zero after point is surplus.
thx.
Re: turn scientific to fixed
Divide by 100 and floor or round to int.
Re: turn scientific to fixed
Thanks again.
i used this but has no effect. ( i mean floor has no effect. divide 100 will makes it better :) )
Code:
b.setNum(floor(x*y/100),'f');
whats wrong?
Re: turn scientific to fixed
How do you know it has no effect? floor() converts a real value to an integer value so as a result you are getting an integer.