Qt Display double number into Label without exponential form

Hello! Let’s say that I have a double number: 1679616. When I try to set text to label, the number is shown as 1.67962e+06. Is there a way so that the number can be shown as it is without exponential format? If I use: QString::number(result, ‘f’, 2) to cast the number to string, everything is ok, but what if the number has more than two digits after that point? I know I can set it to be 10 for example, but you know that this is not the right thing that I want to do. I want if the number is 82348.12323 to be shown 82348.12323. If it is 234.2, I want just one digit after the point.
Topic archived. No new replies allowed.