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

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

Description

Max

License

Apache License

Declaration

public static float Max(float a, float b) 

Method Source Code

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

public class Main {
    public static float Max(float a, float b) {
        return ((a) < (b) ? (b) : (a));
    }//from   w ww.  java 2  s. c o m

    public static int max(int a, int b) {
        if (a > b) {
            return a;
        }
        return b;
    }
}

Related

  1. max(final Iterable values)
  2. max(final NUMBER_TYPE n1, final NUMBER_TYPE n2)
  3. max(final NUMBER_TYPE number1, final NUMBER_TYPE number2)
  4. max(final String string1, final String string2)
  5. max(float a, float b)
  6. max(float a, float b)
  7. max(float a, float b)
  8. max(float a, float b, float c)
  9. max(float a, float b, float c, float d, float e)