to_double for strs