Here you can find the source of minNot0(double i1, double i2)
Parameter | Description |
---|---|
i1 | a parameter |
i2 | a parameter |
public static double minNot0(double i1, double i2)
//package com.java2s; //License from project: Apache License public class Main { /**/*from www . j ava 2s . c om*/ * Get min reject -1 * @param i1 * @param i2 * @return min reject -1 */ public static double minNot0(double i1, double i2) { if (i1 == 0) { if (i2 > 0) return i2; else return 0; } else { if (i2 > 0 && i2 < i1) return i2; else return i1; } } public static double minNot0(double no1, double no2, double no3) { return minNot0(minNot0(no1, no2), no3); } }