- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for formatCompact4Digits (0.78 sec)
-
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: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Feb 03 21:52:39 UTC 2025 - 2.2K bytes - Viewed (0) -
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: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 9.2K bytes - Viewed (0)