.to_f early so there won't be incorrect comparison.

Happened in params[:top] >= params[:bottom] - missing .to_f, causing
`0.5000 >= 0.500` to return `true`.