Use float in place of double