Java Double Number Between between(double value1, double value2, double valueObj)

Here you can find the source of between(double value1, double value2, double valueObj)

Description

between

License

Open Source License

Declaration

static boolean between(double value1, double value2, double valueObj) 

Method Source Code

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

public class Main {
    static boolean between(double value1, double value2, double valueObj) {
        return ((valueObj >= value1 && valueObj <= value2) || (valueObj <= value1 && valueObj >= value2));
    }/*from   w  ww  .j av  a2 s.c o  m*/
}

Related

  1. between(double a, double x, double b)
  2. between(double value, double end1, double end2)
  3. between(double value, double min, double max)
  4. between(double value, double min, double max)
  5. between(double value, double value1, double value2)
  6. between(double valueToCompare, double leftBoundary, double rightBoundary, double epsilon)
  7. between(final double zScore, final int firstIndex, final int secondIndex)
  8. betweenOrEqual(double max, double min, double val)