Fixed cast to float