Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 267 for Float (0.29 sec)

  1. docs/de/docs/tutorial/extra-data-types.md

    # Zusätzliche Datentypen
    
    Bisher haben Sie gängige Datentypen verwendet, wie zum Beispiel:
    
    * `int`
    * `float`
    * `str`
    * `bool`
    
    Sie können aber auch komplexere Datentypen verwenden.
    
    Und Sie haben immer noch dieselbe Funktionalität wie bisher gesehen:
    
    * Großartige Editor-Unterstützung.
    * Datenkonvertierung bei eingehenden Requests.
    * Datenkonvertierung für Response-Daten.
    * Datenvalidierung.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/extra-data-types.md

    # 额外数据类型
    
    到目前为止,您一直在使用常见的数据类型,如:
    
    * `int`
    * `float`
    * `str`
    * `bool`
    
    但是您也可以使用更复杂的数据类型。
    
    您仍然会拥有现在已经看到的相同的特性:
    
    * 很棒的编辑器支持。
    * 传入请求的数据转换。
    * 响应数据转换。
    * 数据验证。
    * 自动补全和文档。
    
    ## 其他数据类型
    
    下面是一些你可以使用的其他数据类型:
    
    * `UUID`:
        * 一种标准的 "通用唯一标识符" ,在许多数据库和系统中用作ID。
        * 在请求和响应中将以 `str` 表示。
    * `datetime.datetime`:
        * 一个 Python `datetime.datetime`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/ArrayUtil.java

        }
    
        /**
         * {@literal float}配列の末尾に{@literal float}の値を追加した配列を返します。
         *
         * @param array
         *            配列。{@literal null}であってはいけません
         * @param value
         *            値
         * @return 値が追加された結果の配列
         */
        public static float[] add(final float[] array, final float value) {
            assertArgumentNotNull("array", array);
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  4. fastapi/encoders.py

    # TODO: pv2 should this return strings instead?
    def decimal_encoder(dec_value: Decimal) -> Union[int, float]:
        """
        Encodes a Decimal as int of there's no exponent, otherwise float
    
        This is useful when we use ConstrainedDecimal to represent Numeric(x,0)
        where a integer (but not int typed) is used. Encoding this as a float
        results in failed round-tripping between encode and parse.
        Our Id type is a prime example of this.
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/FunctionsTest.java

        Map<Float, String> m = ImmutableMap.of(4.0f, "A", 3.0f, "B", 2.0f, "C", 1.0f, "D");
        Predicate<? super Integer> h = Predicates.equalTo(42);
        Function<? super String, Integer> g = new HashCodeFunction();
        Function<Float, String> f = Functions.forMap(m, "F");
    
        Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f);
        Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        Map<Float, String> m = ImmutableMap.of(4.0f, "A", 3.0f, "B", 2.0f, "C", 1.0f, "D");
        Predicate<? super Integer> h = Predicates.equalTo(42);
        Function<? super String, Integer> g = new HashCodeFunction();
        Function<Float, String> f = Functions.forMap(m, "F");
    
        Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f);
        Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/bsentity/BsKeyMatch.java

        //                                                                            ========
        public Float getBoost() {
            checkSpecifiedProperty("boost");
            return boost;
        }
    
        public void setBoost(Float value) {
            registerModifiedProperty("boost");
            this.boost = value;
        }
    
        public String getCreatedBy() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/config/cbean/cq/bs/BsDataConfigCQ.java

        }
    
        public void setBoost_Equal(Float boost) {
            setBoost_Term(boost, null);
        }
    
        public void setBoost_Equal(Float boost, ConditionOptionCall<TermQueryBuilder> opLambda) {
            setBoost_Term(boost, opLambda);
        }
    
        public void setBoost_Term(Float boost) {
            setBoost_Term(boost, null);
        }
    
        public void setBoost_Term(Float boost, ConditionOptionCall<TermQueryBuilder> opLambda) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 108.9K bytes
    - Viewed (0)
  9. tests/test_path.py

                        "msg": "value is not a valid float",
                        "type": "type_error.float",
                    }
                ]
            }
        )
    
    
    def test_path_float_42():
        response = client.get("/path/float/42")
        assert response.status_code == 200
        assert response.json() == 42
    
    
    def test_path_float_42_5():
        response = client.get("/path/float/42.5")
        assert response.status_code == 200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 34.4K bytes
    - Viewed (0)
  10. docs_src/body/tutorial004.py

    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item, q: Union[str, None] = None):
        result = {"item_id": item_id, **item.dict()}
        if q:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 14:28:58 GMT 2024
    - 452 bytes
    - Viewed (0)
Back to top