Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for double (0.17 sec)

  1. guava-tests/test/com/google/common/primitives/DoubleArrayAsListTest.java

          Double[] suffix = {(double) 86, (double) 99};
          Double[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Double[] concat(Double[] left, Double[] right) {
        Double[] result = new Double[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/DoubleArrayAsListTest.java

          Double[] suffix = {(double) 86, (double) 99};
          Double[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Double[] concat(Double[] left, Double[] right) {
        Double[] result = new Double[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java

        for (double positiveValue : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          assertEquals(positiveValue, DoubleUtils.ensureNonNegative(positiveValue));
          assertEquals(0.0, DoubleUtils.ensureNonNegative(-positiveValue));
        }
        assertEquals(Double.POSITIVE_INFINITY, DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY));
        assertEquals(0.0, DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/convert/DoubleConversionUtil.java

         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Double}
         */
        public static Double toDouble(final Object o, final String pattern) {
            if (o == null) {
                return null;
            } else if (o instanceof Double) {
                return (Double) o;
            } else if (o instanceof Number) {
                return new Double(((Number) o).doubleValue());
            } else if (o instanceof String) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/DoubleUtilsTest.java

        for (double positiveValue : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          assertEquals(positiveValue, DoubleUtils.ensureNonNegative(positiveValue));
          assertEquals(0.0, DoubleUtils.ensureNonNegative(-positiveValue));
        }
        assertEquals(Double.POSITIVE_INFINITY, DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY));
        assertEquals(0.0, DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMappingAnd_horizontal() {
        double x1 = 1.2;
        double xDelta = 3.4;
        double y = 5.6;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y).and(x1 + xDelta, y);
        assertHorizontalLinearTransformation(transformation, y);
      }
    
      public void testMappingAnd_vertical() {
        double x = 1.2;
        double y1 = 3.4;
        double yDelta = 5.6;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMappingAnd_horizontal() {
        double x1 = 1.2;
        double xDelta = 3.4;
        double y = 5.6;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y).and(x1 + xDelta, y);
        assertHorizontalLinearTransformation(transformation, y);
      }
    
      public void testMappingAnd_vertical() {
        double x = 1.2;
        double y1 = 3.4;
        double yDelta = 5.6;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/DoublesMethodsForWeb.java

    import jsinterop.annotations.JsPackage;
    
    /** Web specializations for {@link Doubles} methods. */
    public abstract class DoublesMethodsForWeb {
    
      @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
      public static native double min(double... array);
    
      @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
      public static native double max(double... array);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Oct 26 00:50:12 GMT 2023
    - 1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/ToDoubleRounder.java

            case HALF_UP:
              return Double.MAX_VALUE * sign(x);
            case FLOOR:
              return (roundArbitrarily == Double.POSITIVE_INFINITY)
                  ? Double.MAX_VALUE
                  : Double.NEGATIVE_INFINITY;
            case CEILING:
              return (roundArbitrarily == Double.POSITIVE_INFINITY)
                  ? Double.POSITIVE_INFINITY
                  : -Double.MAX_VALUE;
            case UP:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java

            assertEquals(0, new BigDecimal("0.01").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.01D))));
            assertEquals(0, new BigDecimal("0.001").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.001D))));
            assertEquals(0, new BigDecimal("0.0001").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.0001D))));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top