public static boolean assertStrictProbability(final double p){
  if (p > 0.0 && p <= 1.0 && !Double.isNaN(p)) {
    return true;
  }
  throw new Exam.ExamException(Utils.realFormat(p));
}

public static boolean assertStrictProbability ( final double p ) { if ( p > 0.0 && p <= 1.0 && ! Double . isNaN ( p ) ) { return true ; } throw new Exam . ExamException ( Utils . realFormat ( p ) ) ; }
assert that p is a probability ( strictly greater than 0 . 0 ) .
