Specify float32 in average calculation