I’m looking for a QT function to round a variable (integer) of type qint64 to the nearest ten.
For example:
1013 would round to 1010.
1019 would round to 1020
QT Assistant doesn’t seem to list any built in functions that would do this, but I could be looking in the wrong spot.
Any help would be appreciated.
Thanks,
Wes
You may try this old trick for positive numbers, replace + with – for negative: