Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for representable (0.08 seconds)

  1. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

            .setExpectation(Math.pow(2, 53), RoundingMode.values())
            .test();
      }
    
      public void testRoundToDouble_maxPreciselyRepresentablePlusOne() {
        double twoToThe53 = Math.pow(2, 53);
        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigDecimal.valueOf((1L << 53) + 1))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/math/BigDecimalMathTest.java

            .setExpectation(Math.pow(2, 53), RoundingMode.values())
            .test();
      }
    
      public void testRoundToDouble_maxPreciselyRepresentablePlusOne() {
        double twoToThe53 = Math.pow(2, 53);
        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigDecimal.valueOf((1L << 53) + 1))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/math/ToDoubleRounder.java

    import static java.lang.Math.nextDown;
    import static java.lang.Math.nextUp;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.math.RoundingMode;
    
    /**
     * Helper type to implement rounding {@code X} to a representable {@code double} value according to
     * a {@link RoundingMode}.
     */
    @GwtIncompatible
    abstract class ToDoubleRounder<X extends Number & Comparable<X>> {
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_maxPreciselyRepresentablePlusOne() {
        double twoToThe53 = Math.pow(2, 53);
        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigInteger.valueOf((1L << 53) + 1))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 27.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/OverflowAvoidingLockSupport.java

     * signal on 32 bit devices running Android Q.
     */
    @GwtIncompatible
    final class OverflowAvoidingLockSupport {
      // Represents the max nanoseconds representable on a linux timespec with a 32 bit tv_sec
      static final long MAX_NANOSECONDS_THRESHOLD = (1L + Integer.MAX_VALUE) * 1_000_000_000L - 1L;
    
      private OverflowAvoidingLockSupport() {}
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 10 11:51:21 GMT 2026
    - 1.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/math/LongMath.java

       * is precisely representable as a {@code double}, its {@code double} value will be returned;
       * otherwise, the rounding will choose between the two nearest representable values with {@code
       * mode}.
       *
       * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
       * default rounding mode: if the two nearest representable values are equally near, the one with
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 09 23:01:02 GMT 2026
    - 46.8K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/math/IntMath.java

       * @throws ArithmeticException of the next-higher power of two is not representable as an {@code
       *     int}, i.e. when {@code x > 2^30}
       * @since 20.0
       */
      public static int ceilingPowerOfTwo(int x) {
        checkPositive("x", x);
        if (x > MAX_SIGNED_POWER_OF_TWO) {
          throw new ArithmeticException("ceilingPowerOfTwo(" + x + ") not representable as an int");
        }
        return 1 << -Integer.numberOfLeadingZeros(x - 1);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  8. doc/go_spec.html

    <a href="#Complex_numbers">components</a> <code>real(x)</code> and <code>imag(x)</code>
    are representable by values of <code>T</code>'s component type (<code>float32</code> or
    <code>float64</code>).
    </li>
    </ul>
    
    <p>
    If <code>T</code> is a type parameter,
    <code>x</code> is representable by a value of type <code>T</code> if <code>x</code> is representable
    by a value of each type in <code>T</code>'s type set.
    </p>
    
    <pre>
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Apr 01 23:39:18 GMT 2026
    - 287.8K bytes
    - Click Count (1)
  9. docs/es/docs/tutorial/extra-data-types.md

    * `datetime.timedelta`:
        * Un `datetime.timedelta` de Python.
        * En requests y responses se representará como un `float` de segundos totales.
        * Pydantic también permite representarlo como una "codificación de diferencia horaria ISO 8601", [consulta la documentación para más información](https://docs.pydantic.dev/latest/concepts/serialization/#custom-serializers).
    * `frozenset`:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  10. RELEASE.md

            `tf.GradientTape` inside a `tf.function`.
        *   Changed the default step size in `gradient_checker_v2.compute_gradients`
            to be exactly representable as a binary floating point numbers. This
            avoids poluting gradient approximations needlessly, which is some cases
            leads to false negatives in op gradient tests.
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Mar 30 18:31:38 GMT 2026
    - 746.5K bytes
    - Click Count (3)
Back to Top