Ruby needs to_f to correctly divide