do some number formatting, esp as fraction