MINOR: tools: add new round_2dig() function to round integers

This function rounds down an integer to the closest value having only
2 significant digits.
2 files changed