Make number-formatting routine more-flexible.