Just what the question says in the title. I have a pair of integers, I want to convert it to a floating point so that I can do floating point math on it (to get a nice percentage).
Right now my code looks like this.
(failure_and_run_count[:failure].round(1) / failure_and_run_count[:run].round(1)) * 100.0
Someone please tell me there is a nicer way to coerce the ints inside of failure_and_run_count to floating points.