Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for HALF_EVEN (0.17 sec)

  1. android/guava/src/com/google/common/math/DoubleMath.java

          case DOWN:
            return x;
    
          case UP:
            if (isMathematicalInteger(x)) {
              return x;
            } else {
              return (long) x + (x > 0 ? 1 : -1);
            }
    
          case HALF_EVEN:
            return rint(x);
    
          case HALF_UP:
            {
              double z = rint(x);
              if (abs(x - z) == 0.5) {
                return x + copySign(0.5, x);
              } else {
                return z;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/DoubleMathTest.java

    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    import static java.math.RoundingMode.HALF_UP;
    import static java.math.RoundingMode.UNNECESSARY;
    import static java.math.RoundingMode.UP;
    import static java.util.Arrays.asList;
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
Back to top