- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 136 for roundUp (0.52 sec)
-
src/test/java/jcifs/smb1/util/HexdumpTest.java
assertEquals("0A", Hexdump.toHexString(data3, 0, 2)); // 2 chars = 1 byte assertEquals("0A0", Hexdump.toHexString(data3, 0, 3)); // 3 chars = 1.5 bytes (rounds up to 2) assertEquals("0A0B", Hexdump.toHexString(data3, 0, 4)); // 4 chars = 2 bytes assertEquals("0A0B0", Hexdump.toHexString(data3, 0, 5)); // 5 chars = 2.5 bytes (rounds up to 3)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
import org.junit.jupiter.api.Test; /** * Unit tests for {@link NegTokenTarg}. The class has no external * collaborators so tests are mostly focused on round‑trip * serialisation and invalid input handling. */ class NegTokenTargTest { @Test @DisplayName("happy path – full token round‑trip") void testRoundTripFull() throws IOException { // Arrange – create a fully populated token
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
cmd/metrics-resource.go
cpuUserVal := math.Round(ts.User/tot*100*100) / 100 updateResourceMetrics(cpuSubsystem, cpuUser, cpuUserVal, labels, false) cpuSystemVal := math.Round(ts.System/tot*100*100) / 100 updateResourceMetrics(cpuSubsystem, cpuSystem, cpuSystemVal, labels, false) cpuIdleVal := math.Round(ts.Idle/tot*100*100) / 100
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 17.2K bytes - Viewed (0) -
android/guava/src/com/google/common/math/Quantiles.java
// Since scale is a positive int, index is in [0, scale], and (dataset.length - 1) is a // non-negative int, we can do long-arithmetic on index * (dataset.length - 1) / scale to get // a rounded ratio and a remainder which can be expressed as ints, without risk of overflow: int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); int remainder = (int) (numerator - (long) quotient * scale);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 30.1K bytes - Viewed (0) -
utils/tests/utils.go
format := "2006-01-02T15:04:05Z07:00" if curTime.Round(time.Second).UTC().Format(format) != expect.(time.Time).Round(time.Second).UTC().Format(format) && curTime.Truncate(time.Second).UTC().Format(format) != expect.(time.Time).Truncate(time.Second).UTC().Format(format) { t.Errorf("%v: expect: %v, got %v after time round", utils.FileWithLineNum(), expect.(time.Time), curTime) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Mar 10 09:21:56 UTC 2023 - 3.9K bytes - Viewed (0) -
android/guava/src/com/google/common/math/DoubleUtils.java
} /* * We need the top SIGNIFICAND_BITS + 1 bits, including the "implicit" one bit. To make rounding * easier, we pick out the top SIGNIFICAND_BITS + 2 bits, so we have one to help us round up or * down. twiceSignifFloor will contain the top SIGNIFICAND_BITS + 2 bits, and signifFloor the * top SIGNIFICAND_BITS + 1. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
assertTrue(result.length > 0, "Result should not be empty"); // Verify round-trip conversion String roundTrip = new String(result, StandardCharsets.UTF_16LE); assertEquals(UNICODE_STRING, roundTrip, "Round-trip conversion should preserve Unicode"); } @Test @DisplayName("getASCIIBytes should encode string as ASCII")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
public static boolean isPowerOfTwo(BigInteger x) { checkNotNull(x); return x.signum() > 0 && x.getLowestSetBit() == x.bitLength() - 1; } /** * Returns the base-2 logarithm of {@code x}, rounded according to the specified rounding mode. * * @throws IllegalArgumentException if {@code x <= 0} * @throws ArithmeticException if {@code mode} is {@link RoundingMode#UNNECESSARY} and {@code x}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
assertArrayEquals(mechs, parsed.getMechanisms(), "Mechanism OIDs should round-trip"); assertEquals(flags, parsed.getContextFlags(), "Flags should round-trip"); assertArrayEquals(mechToken, parsed.getMechanismToken(), "Mechanism token should round-trip"); assertArrayEquals(mic, parsed.getMechanismListMIC(), "MIC should round-trip"); assertTrue(parsed.getContextFlag(NegTokenInit.DELEGATION));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
* The buffer is created with enough capacity for a 64‑bit value. */ @ExtendWith(MockitoExtension.class) public class NdrHyperTest { /** * Tests a simple round‑trip encode → decode retains the original value. */ @Test @DisplayName("Basic round‑trip for a fixed value") public void testEncodeRoundTrip() throws NdrException { final long original = 0x1122334455667788L;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0)