Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for formatCompact4Digits (0.18 sec)

  1. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

        // choosing to turn .precomputed() into a no-op in GWT, because it doesn't
        // seem to be a worthwhile tradeoff in a browser.
        return matcher;
      }
    
      static String formatCompact4Digits(double value) {
        return toPrecision(value, 4);
      }
    
      @JsMethod(name = "Number.prototype.toPrecision.call", namespace = JsPackage.GLOBAL)
      private static native String toPrecision(double value, int precision);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon May 27 13:56:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Platform.java

         * `get()`, but that is vanishingly unlikely.
         */
        return ref == null ? Optional.absent() : Optional.fromNullable(enumClass.cast(ref.get()));
      }
    
      static String formatCompact4Digits(double value) {
        return String.format(Locale.ROOT, "%.4g", value);
      }
    
      static boolean stringIsNullOrEmpty(@CheckForNull String string) {
        return string == null || string.isEmpty();
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Platform.java

         * `get()`, but that is vanishingly unlikely.
         */
        return ref == null ? Optional.absent() : Optional.fromNullable(enumClass.cast(ref.get()));
      }
    
      static String formatCompact4Digits(double value) {
        return String.format(Locale.ROOT, "%.4g", value);
      }
    
      static boolean stringIsNullOrEmpty(@CheckForNull String string) {
        return string == null || string.isEmpty();
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Stopwatch.java

        TimeUnit unit = chooseUnit(nanos);
        double value = (double) nanos / NANOSECONDS.convert(1, unit);
    
        // Too bad this functionality is not exposed as a regular method call
        return Platform.formatCompact4Digits(value) + " " + abbreviate(unit);
      }
    
      private static TimeUnit chooseUnit(long nanos) {
        if (DAYS.convert(nanos, NANOSECONDS) > 0) {
          return DAYS;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Nov 15 21:38:09 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Stopwatch.java

        TimeUnit unit = chooseUnit(nanos);
        double value = (double) nanos / NANOSECONDS.convert(1, unit);
    
        // Too bad this functionality is not exposed as a regular method call
        return Platform.formatCompact4Digits(value) + " " + abbreviate(unit);
      }
    
      private static TimeUnit chooseUnit(long nanos) {
        if (DAYS.convert(nanos, NANOSECONDS) > 0) {
          return DAYS;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top