I use tr("%1").arg(2.00000, 0, 'f', 2);
to format figures.
it is formatted to "2.00", but '.00' is not what i want, i hope to cut it off.
so i tried .arg(2.00000, 0, 'g', 2);
, and the '.00' is cut.
but in some other curcumstances 'g' mode uses 'e' mode and formats it like "2.5e+02"...
i hope the figure is just formatted in 'f' mode and could cut the '.00' tail if it has one. how to do that?