Java Number Min Value Minimum(float x, float y)

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

Description

Returns the minimum of two float values

License

Open Source License

Parameter

Parameter Description
x A float
y A float

Return

The minimum float in the comparison

Declaration

public static float Minimum(float x, float y) 

Method Source Code

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

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

Related

  1. minimalIndexOf(String str, String separators, int startIndex)
  2. minimiseSpaces(String input)
  3. minimize(final StringBuilder src)
  4. minimizeWhitespace(String str)
  5. minimum(float first, float second)
  6. minimum(int a, int b, int c)
  7. Minimum(int a, int b, int c)
  8. minimum(int a, int b, int c)
  9. minimum(int a, int b, int c)