- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for isInfinite (0.11 sec)
-
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
public void testIsPowerOfTwo() { for (double x : ALL_DOUBLE_CANDIDATES) { boolean expected = x > 0 && !Double.isInfinite(x) && !Double.isNaN(x) && StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x; assertEquals(expected, DoubleMath.isPowerOfTwo(x)); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 27.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
assertThat(Doubles.hashCode(value)).isEqualTo(((Double) value).hashCode()); } } public void testIsFinite() { for (double value : NUMBERS) { assertThat(Doubles.isFinite(value)) .isEqualTo(!(Double.isNaN(value) || Double.isInfinite(value))); } } public void testCompare() { for (double x : VALUES) { for (double y : VALUES) { // note: spec requires only that the sign is the same
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
public void testIsPowerOfTwo() { for (double x : ALL_DOUBLE_CANDIDATES) { boolean expected = x > 0 && !Double.isInfinite(x) && !Double.isNaN(x) && StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x; assertEquals(expected, DoubleMath.isPowerOfTwo(x)); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 27.3K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Floats.java
* necessarily implemented as, {@code !(Float.isInfinite(value) || Float.isNaN(value))}. * * <p><b>Java 8+ users:</b> use {@link Float#isFinite(float)} instead. * * @since 10.0 */ public static boolean isFinite(float value) { return NEGATIVE_INFINITY < value && value < POSITIVE_INFINITY; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:52:18 UTC 2024 - 25.8K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Doubles.java
* necessarily implemented as, {@code !(Double.isInfinite(value) || Double.isNaN(value))}. * * <p><b>Java 8+ users:</b> use {@link Double#isFinite(double)} instead. * * @since 10.0 */ public static boolean isFinite(double value) { return NEGATIVE_INFINITY < value && value < POSITIVE_INFINITY; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:52:18 UTC 2024 - 27.9K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Floats.java
* necessarily implemented as, {@code !(Float.isInfinite(value) || Float.isNaN(value))}. * * <p><b>Java 8+ users:</b> use {@link Float#isFinite(float)} instead. * * @since 10.0 */ public static boolean isFinite(float value) { return NEGATIVE_INFINITY < value && value < POSITIVE_INFINITY; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:52:18 UTC 2024 - 25.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/FloatsTest.java
assertThat(Floats.hashCode(value)).isEqualTo(((Float) value).hashCode()); } } public void testIsFinite() { for (float value : NUMBERS) { assertThat(Floats.isFinite(value)) .isEqualTo(!(Float.isInfinite(value) || Float.isNaN(value))); } } public void testCompare() { for (float x : VALUES) { for (float y : VALUES) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 30.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
assertThat(Doubles.hashCode(value)).isEqualTo(((Double) value).hashCode()); } } public void testIsFinite() { for (double value : NUMBERS) { assertThat(Doubles.isFinite(value)) .isEqualTo(!(Double.isNaN(value) || Double.isInfinite(value))); } } public void testCompare() { for (double x : VALUES) { for (double y : VALUES) { // note: spec requires only that the sign is the same
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/FloatsTest.java
assertThat(Floats.hashCode(value)).isEqualTo(((Float) value).hashCode()); } } public void testIsFinite() { for (float value : NUMBERS) { assertThat(Floats.isFinite(value)) .isEqualTo(!(Float.isInfinite(value) || Float.isNaN(value))); } } public void testCompare() { for (float x : VALUES) { for (float y : VALUES) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 30.3K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Doubles.java
* necessarily implemented as, {@code !(Double.isInfinite(value) || Double.isNaN(value))}. * * <p><b>Java 8+ users:</b> use {@link Double#isFinite(double)} instead. * * @since 10.0 */ public static boolean isFinite(double value) { return NEGATIVE_INFINITY < value && value < POSITIVE_INFINITY; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 28.1K bytes - Viewed (0)