Java Number Max Value maxF(float a, float b)

Here you can find the source of maxF(float a, float b)

Description

Unchecked implementation to determine the larger of two Floats.

License

LGPL

Declaration

public static float maxF(float a, float b) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    /**//from  ww  w . j a v a2s  . com
     * Unchecked implementation to determine the larger of two Floats. Parameters should be known to be valid in advance.
     */
    public static float maxF(float a, float b) {
        return a > b ? a : b;
    }

    public static float maxF(int a, float b) {
        return a > b ? a : b;
    }

    public static float maxF(float a, int b) {
        return a > b ? a : b;
    }
}

Related

  1. max3(int first, int second, int third)
  2. MAX3(int x, int y, int z)
  3. max4(double v1, double v2, double v3, double v4)
  4. max8(double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8)
  5. maxDelta(float newValue, float oldValue, float maxChange)
  6. maxFill(final int n, final float f)
  7. maxFill(final int n, final float f)
  8. maxFloat(float var1, float var2)
  9. maximum(float first, float second)