Convert values to float before attempting any calculations.