is_prob function

Verify that input is a probability (numeric value from 0 to 1).