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