Cleanup of selections_and_cursortip number formatting

- Rearranged code so there is more proper naming the helper functions that format numbers.
- Commented unused functions.
- Pushed number formatting function (numformat) to occur only when printing values. A rare scenario was assuming numbers but they were previously formatted into strings, causing a bad comparison.