Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pow (0.13 sec)

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

          case HALF_DOWN:
          case HALF_UP:
          case HALF_EVEN:
            // Since sqrt(10) is irrational, log10(x) - floorLog can never be exactly 0.5
            BigInteger x2 = x.pow(2);
            BigInteger halfPowerSquared = floorPow.pow(2).multiply(BigInteger.TEN);
            return (x2.compareTo(halfPowerSquared) <= 0) ? floorLog : floorLog + 1;
          default:
            throw new AssertionError();
        }
      }
    
    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)
Back to top