How do I format a number the following way?
input:
123
output:
1.2-3
In C#, there's a ToString()
overload for integer types that does the job:
123.ToString(@"0\.0-0"); //output 1.2-3
Is there something like this in Qt? I did read QString
documentation but couldn't manage to do that.