Converted to float instead of double