Wrapper for number formatting code