Although the lines output by the program claim to be a conversion, that’s not happening (at least not yet). It’s just printing the factor between miles and km. You’d need to multiply by that factor to get the converted distance.
miles * miles_to_kilometers would generate the number of kilometers.