Objective-C: Name of the method that adjust floating point value to 0-1
I created the following method to use rate safely.<br>
(Sometimes rate can become invalid value like INFINITY, NAN, or out of 0-1)

    -(double)XXXX:(double)rate
        if (rate >= 1) {
             return 1;
        } else if (rate <= 0) {
            return 0;
        } else if (0 <= rate && rate <= 1) {
            return rate;
        } else {
            return 0;
        }
    }


What should I name this method?


Objective-C: Name of the method that adjust floating point value to 0-1
===

I created the following method to use rate safely.<br>
(Sometimes rate can become invalid value like INFINITY, NAN, or out of 0-1)

    -(double)XXXX:(double)rate
        if (rate >= 1) {
             return 1;
        } else if (rate <= 0) {
            return 0;
        } else if (0 <= rate && rate <= 1) {
            return rate;
        } else {
            return 0;
        }
    }


What should I name this method?

