Java Number Max Value maxLimit(float value, float max)

Here you can find the source of maxLimit(float value, float max)

Description

max Limit

License

Open Source License

Declaration

public static float maxLimit(float value, float max) 

Method Source Code

//package com.java2s;

public class Main {
    public static float maxLimit(float value, float max) {
        return value > max ? max : value;
    }//from   w  w  w  .  ja v a2s. c  o m

    public static double maxLimit(double value, double max) {
        return value > max ? max : value;
    }

    public static int maxLimit(int value, int max) {
        return value > max ? max : value;
    }
}

Related

  1. maxFill(final int n, final float f)
  2. maxFloat(float var1, float var2)
  3. maximum(float first, float second)
  4. Maximum(float x, float y)
  5. maxInt(float a, float b)
  6. maxVal(int numbits)
  7. maxValue(byte length)
  8. maxValue(int bits)
  9. maxValueUnsigned(int bits)