Java Float Number Between between(float number, float boundary1, float boundary2)

Here you can find the source of between(float number, float boundary1, float boundary2)

Description

between

License

Open Source License

Declaration

public static boolean between(float number, float boundary1, float boundary2) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean between(float number, float boundary1, float boundary2) {
        return ((number >= boundary1 && number <= boundary2) || (number <= boundary1 && number >= boundary2));
    }//www  .j a  va  2s .c  om
}

Related

  1. between(float a, float b, float x)
  2. between(float value, float min, float max)