Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for exponent (0.1 seconds)

  1. fastapi/encoders.py

        >>> 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)
    
    
    ENCODERS_BY_TYPE: dict[type[Any], Callable[[Any], Any]] = {
        bytes: lambda o: o.decode(),
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  2. internal/s3select/json/record.go

    	// Convert as if by ES6 number to string conversion.
    	// This matches most other JSON generators.
    	// See golang.org/issue/6384 and golang.org/issue/14135.
    	// Like fmt %g, but the exponent cutoffs are different
    	// and exponents themselves are not padded to two digits.
    	abs := math.Abs(f)
    	fmt := byte('f')
    	if abs != 0 {
    		if abs < 1e-6 || abs >= 1e21 {
    			fmt = 'e'
    		}
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

                for (String expMarker : ImmutableList.of("p", "P")) {
                  for (String exponent : ImmutableList.of("0", "-5", "+20", "52")) {
                    for (String typePart : ImmutableList.of("", "D", "F", "d", "f")) {
                      checkTryParse(
                          signChar + hexPrefix + iPart + fPart + expMarker + exponent + typePart);
                    }
                  }
                }
              }
            }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 30.9K bytes
    - Click Count (0)
  4. guava/src/com/google/common/math/LongMath.java

       * time.
       *
       * @throws IllegalArgumentException if {@code k < 0}
       */
      @GwtIncompatible // TODO
      public static long pow(long b, int k) {
        checkNonNegative("exponent", k);
        if (-2 <= b && b <= 2) {
          switch ((int) b) {
            case 0:
              return (k == 0) ? 1 : 0;
            case 1:
              return 1;
            case -1:
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 03 21:01:09 GMT 2025
    - 46.8K bytes
    - Click Count (0)
  5. internal/s3select/jstream/decoder.go

    	if c == 'e' || c == 'E' {
    		isFloat = true
    		d.scratch.add(c)
    
    		if c = d.next(); c == '+' || c == '-' {
    			d.scratch.add(c)
    			if c = d.next(); c < '0' || c > '9' {
    				return 0, d.mkError(ErrSyntax, "in exponent of numeric literal")
    			}
    			d.scratch.add(c)
    		}
    		for ; c >= '0' && c <= '9'; c = d.next() {
    			d.scratch.add(c)
    		}
    	}
    
    	if isFloat {
    		var (
    			err error
    			sn  string
    		)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  6. doc/go_spec.html

    a decimal point, a fractional part (decimal digits), and an exponent part
    (<code>e</code> or <code>E</code> followed by an optional sign and decimal digits).
    One of the integer part or the fractional part may be elided; one of the decimal point
    or the exponent part may be elided.
    An exponent value exp scales the mantissa (integer and fractional part) by 10<sup>exp</sup>.
    </p>
    
    <p>
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
  7. CHANGELOG/CHANGELOG-1.32.md

    - github.com/docker/go-connections: [v0.4.0 → v0.5.0](https://github.com/docker/go-connections/compare/v0.4.0...v0.5.0)
    - github.com/exponent-io/jsonpath: [d6023ce → 1de76d7](https://github.com/exponent-io/jsonpath/compare/d6023ce...1de76d7)
    - github.com/go-openapi/jsonpointer: [v0.19.6 → v0.21.0](https://github.com/go-openapi/jsonpointer/compare/v0.19.6...v0.21.0)
    Created: Fri Dec 26 09:05:12 GMT 2025
    - Last Modified: Tue Dec 16 18:27:41 GMT 2025
    - 448.1K bytes
    - Click Count (0)
  8. lib/fips140/v1.0.0-c2097c7c.zip

    pub.N.BitLen()%2 == 1 { fipsApproved = false } if pub.E < 2 { return false, errors.New("crypto/rsa: public exponent too small or negative") } // e needs to be coprime with p-1 and q-1, since it must be invertible // modulo λ(pq). Since p and q are prime, this means e needs to be odd. if pub.E&1 == 0 { return false, errors.New("crypto/rsa: public exponent is even") } // FIPS 186-5, Section 5.5(e): "The exponent e shall be an odd, positive // integer such that 2¹⁶ < e < 2²⁵⁶." if pub.E <= 1<<16 { fipsApproved...
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Sep 25 19:53:19 GMT 2025
    - 642.7K bytes
    - Click Count (0)
  9. lib/fips140/v1.1.0-rc1.zip

    pub.N.BitLen()%2 == 1 { fipsApproved = false } if pub.E < 2 { return false, errors.New("crypto/rsa: public exponent too small or negative") } // e needs to be coprime with p-1 and q-1, since it must be invertible // modulo λ(pq). Since p and q are prime, this means e needs to be odd. if pub.E&1 == 0 { return false, errors.New("crypto/rsa: public exponent is even") } // FIPS 186-5, Section 5.5(e): "The exponent e shall be an odd, positive // integer such that 2¹⁶ < e < 2²⁵⁶." if pub.E <= 1<<16 { fipsApproved...
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Dec 11 16:27:41 GMT 2025
    - 663K bytes
    - Click Count (0)
  10. docs/es/docs/tutorial/request-files.md

    * Puedes obtener metadatos del archivo subido.
    * Tiene una interfaz `async` <a href="https://docs.python.org/3/glossary.html#term-file-like-object" class="external-link" target="_blank">parecida a un archivo</a>.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top