Ensure we are dealing float datapoints
Ensure we are dealing float datapoints

Convert strings to floats, but in a reliable manner.

Float() will only convert things that look like floats, whereas to_f is
a bit more leniant (eg nil.to_f == 0.0; Float(nil) throws an exception).

ministryofjustice/sensu-formula,ministryofjustice/sensu-formula