def METHOD_NAME(self, value):
    assert isinstance(value, (int, float))
    if math.isnan(value):
        raise ValueError("NaN is not a valid number")
    return clampNumber(value, self.precision, self.minimum, self.maximum)