Java Number Min Value minMax(double v, double min, double max)

Here you can find the source of minMax(double v, double min, double max)

Description

min Max

License

Open Source License

Declaration

public static double minMax(double v, double min, double max) 

Method Source Code

//package com.java2s;
// This code is released under the RoboWiki Public Code Licence (RWPCL), datailed on:

public class Main {
    public static double minMax(double v, double min, double max) {
        return Math.max(min, Math.min(max, v));
    }//from  ww  w .  j  ava2  s .  com
}

Related

  1. minLength(String value, int min)
  2. minLengthExpression(final String operand, final long minLength)
  3. minLimit(double d, double limit)
  4. minLimit(float value, float min)
  5. minLog2(int input)
  6. minMax(int i)
  7. minmax(int min, int max, int now)
  8. minMax(int val, int min, int max)
  9. minMax(int value, int min, int max)