Allow floating point values for threshold