Group:Number:AVG wrong value

I use openhab 2.2. I have a Group with temperatures and want to know the average I use the Group:Number:AVG but the average depends on the value in the Group. If every value in the Group is a int (21, 21 ,22) the resulting avg is 21 instead of 21.3. If it is a double(21.5, 21. 22) the avg is correct.
This are my log files: SollTempV_FF_BadOG changes and depending on the Input value it is correct or not.

2018-01-21 09:00:15.670 [ome.event.ItemCommandEvent] - Item ‘SollTempV_FF_BadOG’ received command 22.5
2018-01-21 09:00:15.697 [vent.ItemStateChangedEvent] - SollTempV_FF_BadOG changed from 22 to 22.5
2018-01-21 09:00:15.703 [GroupItemStateChangedEvent] - TemperatureSetPoint changed from 21 to 21.3 through SollTempV_FF_BadOG
2018-01-21 09:00:16.516 [ome.event.ItemCommandEvent] - Item ‘SollTempV_FF_BadOG’ received command 23
2018-01-21 09:00:16.534 [vent.ItemStateChangedEvent] - SollTempV_FF_BadOG changed from 22.5 to 23
2018-01-21 09:00:16.541 [GroupItemStateChangedEvent] - TemperatureSetPoint changed from 21.3 to 21 through SollTempV_FF_BadOG

Is this a bug or can i force the avg function to create a double value?

Regards
Herbert

At first look, it seems to be a bug.