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

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

Description

max

License

Open Source License

Declaration

public static float max(float a, float b) 

Method Source Code

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

public class Main {
    public static float max(float a, float b) {
        return a > b ? a : b;
    }/*from  w  w w .j av  a  2s  .  com*/

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

    public static float max(float a, float b, float c) {
        return a > b ? (a > c ? a : c) : (b > c ? b : c);
    }

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

Related

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