Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ToDoubleRounder (0.05 sec)

  1. guava/src/com/google/common/math/BigIntegerMath.java

        return BigIntegerToDoubleRounder.INSTANCE.roundToDouble(x, mode);
      }
    
      @GwtIncompatible
      private static final class BigIntegerToDoubleRounder extends ToDoubleRounder<BigInteger> {
        static final BigIntegerToDoubleRounder INSTANCE = new BigIntegerToDoubleRounder();
    
        private BigIntegerToDoubleRounder() {}
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/LongMath.java

       *     is not precisely representable as a {@code double}
       * @since 30.0
       */
      @GwtIncompatible
      public static double roundToDouble(long x, RoundingMode mode) {
        // Logic adapted from ToDoubleRounder.
        double roundArbitrarily = (double) x;
        long roundArbitrarilyAsLong = (long) roundArbitrarily;
        int cmpXToRoundArbitrarily;
    
        if (roundArbitrarilyAsLong == Long.MAX_VALUE) {
          /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top