In method format() of strings, set _is_numeric to True for floats and integers