Hello everyone, there are two variables of type float and int. When you try to multiply them, in some cases there are values ​​with the exponent, for example:

0.5 * 4690678 = 2.34534e+06; 0.5 * 2161017 = 1.08051e+06; 

All values ​​must be placed in a QString. How can I get rid of the exhibitors?

    1 answer 1

    It seems to solve the problem.

     QString::number(a * b, 'g', 10) 

    The result is a response without an exponent.