Here you can find the source of min(float value1, float value2)
Parameter | Description |
---|---|
value1 | Source value. |
value2 | Source value. |
public static float min(float value1, float value2)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w . j a v a 2 s . co m*/ * Returns the lesser of two values. * * @param value1 * Source value. * @param value2 * Source value. * @return The lesser value. */ public static float min(float value1, float value2) { return Math.min(value1, value2); } /** * Returns the lesser of two values. * * @param value1 * Source value. * @param value2 * Source value. * @return The lesser value. */ public static int min(int value1, int value2) { return value1 < value2 ? value1 : value2; } }