The method `to_f` already returns `0.0` instead of raising an exception when handling non-numeric values.