Added type casting to float for queries that do division.