The types WindSpeed2Avg and WindGust10Avg don't exist in WeeWX, so, unless you attached them to a unit group, they will use default formatting, which is "%f", the Python generic formatting for floating point numbers. That hasn't changed since v2.5.0, which came out seven years ago.
To give them a default formatting, they must be attached to a unit group. In this case, group_speed would probably be most appropriate. Put this somewhere where it will get run before use (user/extensions.py will do):
import weewx.units
weewx.units.obs_group_dict['WindSpeed2Avg'] = 'group_speed'
weewx.units.obs_group_dict['WindSpeed10Avg'] = 'group_speed'
I don't have an explanation for why formatting for wind direction would have changed. I assume you are talking about the tag $current.windDir? The unit for wind direction is "degree_compass". Its formatting is set in weewx.conf:
[StdReports]
...
[[Defaults]]
...
[[[Units]]]
...
[[[[StringFormats]]]]
...
degree_compass = "%.0f"
If you have formatting issues, you would do well to read the section
Formatting options in the Customizing Guide.
-tk