Java Number Max Value Maximum(float x, float y)

Here you can find the source of Maximum(float x, float y)

Description

Returns the maximum of two float values

License

Open Source License

Parameter

Parameter Description
x A float
y A float

Return

The maximum float in the comparison

Declaration

public static float Maximum(float x, float y) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from   w w w .java  2  s.  c o m
     * <p>
     * Returns the maximum of two float values
     * </p>
     * @param x         A float
     * @param y         A float
     * @return          The maximum float in the comparison
     */
    public static float Maximum(float x, float y) {
        if (x > y)
            return (x);
        else
            return (y);
    }
}

Related

  1. maxF(float a, float b)
  2. maxFill(final int n, final float f)
  3. maxFill(final int n, final float f)
  4. maxFloat(float var1, float var2)
  5. maximum(float first, float second)
  6. maxInt(float a, float b)
  7. maxLimit(float value, float max)
  8. maxVal(int numbits)
  9. maxValue(byte length)