Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Decimal (0.04 sec)

  1. fastapi/encoders.py

        results in failed round-tripping between encode and parse.
        Our Id type is a prime example of this.
    
        >>> decimal_encoder(Decimal("1.0"))
        1.0
    
        >>> decimal_encoder(Decimal("1"))
        1
    
        >>> decimal_encoder(Decimal("NaN"))
        nan
        """
        exponent = dec_value.as_tuple().exponent
        if isinstance(exponent, int) and exponent >= 0:
            return int(dec_value)
        else:
            return float(dec_value)
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/InetAddresses.java

        int decimal = 0;
        int max = Integer.MAX_VALUE / 10; // for int overflow detection
        for (int i = start; i < end; i++) {
          if (decimal > max) {
            return -1;
          }
          decimal *= 10;
          int digit = Character.digit(string.charAt(i), 10);
          if (digit < 0) {
            return -1;
          }
          decimal += digit;
        }
        return decimal;
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InetAddresses.java

        int decimal = 0;
        int max = Integer.MAX_VALUE / 10; // for int overflow detection
        for (int i = start; i < end; i++) {
          if (decimal > max) {
            return -1;
          }
          decimal *= 10;
          int digit = Character.digit(string.charAt(i), 10);
          if (digit < 0) {
            return -1;
          }
          decimal += digit;
        }
        return decimal;
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        long rem = dividend - quotient * divisor;
        return rem - (compare(rem, divisor) >= 0 ? divisor : 0);
      }
    
      /**
       * Returns the unsigned {@code long} value represented by the given decimal string.
       *
       * <p><b>Java 8+ users:</b> use {@link Long#parseUnsignedLong(String)} instead.
       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code long}
       *     value
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  5. README.md

    - **Type Safe** - Comprehensive use of generics and modern Java type system features
    
    ### Additional Components
    - **Text Processing** (`org.codelibs.core.text`) - JSON utilities, tokenization, decimal formatting, and text manipulation
    - **Logging Abstraction** (`org.codelibs.core.log`) - Flexible logging system supporting JCL (Jakarta Commons Logging) and JUL (Java Util Logging)
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

     *
     * This matches IPv6 addresses as a hex string containing at least one colon, and possibly
     * including dots after the first colon. It matches IPv4 addresses as strings containing only
     * decimal digits and dots. This pattern matches strings like "a:.23" and "54" that are neither IP
     * addresses nor hostnames; they will be verified as IP addresses (which is a more strict
     * verification).
     */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SIDTest.java

            }
    
            @Test
            @DisplayName("Textual constructor with hex identifier authority")
            void testTextualConstructorHexAuthority() throws Exception {
                // Arrange: 0x5 == decimal 5 results in decimal authority in toString
                SID sid = new SID("S-1-0x000000000005-21-99");
    
                // Act
                String s = sid.toString();
    
                // Assert
                assertEquals("S-1-5-21-99", s);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/UnsignedInts.java

        return (int) (toLong(dividend) % toLong(divisor));
      }
    
      /**
       * Returns the unsigned {@code int} value represented by the given string.
       *
       * <p>Accepts a decimal, hexadecimal, or octal number given by specifying the following prefix:
       *
       * <ul>
       *   <li>{@code 0x}<i>HexDigits</i>
       *   <li>{@code 0X}<i>HexDigits</i>
       *   <li>{@code #}<i>HexDigits</i>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Feb 09 16:22:33 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

                    if (!word.isEmpty()) {
                        int startOffset = text.indexOf(word, offset);
                        int endOffset = startOffset + word.length();
    
                        // Handle decimal numbers
                        if (word.matches("\\d+") && startOffset > 0 && text.charAt(startOffset - 1) == '.') {
                            continue;
                        }
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/util/HexdumpTest.java

            assertNotNull(output);
            // Should start at offset 0 in display but show data from offset 16
            assertTrue(output.contains("00000:"));
            // First byte should be 0x10 (16 in decimal)
            assertTrue(output.contains(" 10 11 12"));
        }
    
        @Test
        @DisplayName("Should convert hex chars correctly")
        void testToHexChars() {
            // Test integer conversion
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top