Feature legend number format

This PR adds some functions used to deal with number formatting in the color legend.