Format number strings with field precision for display in attribute table, attribute dialog and editor