format numbers in table rows