Using to_f to ensure empty results