Converting everything to float before calculating