change cast to float_64
move unit conversion to output line