add optional comma separators to formatFloat