Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for decimal (0.23 sec)

  1. dbflute_fess/dfprop/databaseInfoMap.dfprop

    # | NUMERIC       | java.math.BigDecimal | decimal?      |
    # | DECIMAL       | java.math.BigDecimal | decimal?      |
    # | TINYINT       | java.lang.Integer    | int?          |
    # | SMALLINT      | java.lang.Integer    | int?          |
    # | INTEGER       | java.lang.Integer    | int?          |
    # | BIGINT        | java.lang.Long       | long?         |
    # | REAL          | java.math.BigDecimal | decimal?      |
    Plain Text
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Sat Oct 31 23:35:14 GMT 2015
    - 7.3K bytes
    - Viewed (0)
  2. tests/test_multi_body_errors.py

    from decimal import Decimal
    from typing import List
    
    from dirty_equals import IsDict, IsOneOf
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, condecimal
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        age: condecimal(gt=Decimal(0.0))  # type: ignore
    
    
    @app.post("/items/")
    def save_item_no_body(item: List[Item]):
        return {"item": item}
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  3. tests/test_jsonable_encoder.py

        assert jsonable_encoder(model) == "Foo"
    
    
    @needs_pydanticv2
    def test_decimal_encoder_float():
        data = {"value": Decimal(1.23)}
        assert jsonable_encoder(data) == {"value": 1.23}
    
    
    @needs_pydanticv2
    def test_decimal_encoder_int():
        data = {"value": Decimal(2)}
        assert jsonable_encoder(data) == {"value": 2}
    
    
    def test_encode_deque_encodes_child_models():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/extra-data-types.md

    * `bytes`:
        * O `bytes` padrão do Python.
        * Em requisições e respostas será representado como uma `str`.
        * O esquema gerado vai especificar que é uma `str` com o "formato" `binary`.
    * `Decimal`:
        * O `Decimal` padrão do Python.
        * Em requisições e respostas será representado como um `float`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. migrator/column_type.go

    // Consult your driver documentation for a list of driver data types. Length specifiers
    // are not included.
    // Common type names include "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
    // "INT", and "BIGINT".
    func (ct ColumnType) DatabaseTypeName() string {
    	if ct.DataTypeValue.Valid {
    		return ct.DataTypeValue.String
    	}
    	return ct.SQLColumnType.DatabaseTypeName()
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/extra-data-types.md

    * `bytes`:
        * Встроенный в Python `bytes`.
        * В запросах и ответах будет рассматриваться как `str`.
        * В сгенерированной схеме будет указано, что это `str` в формате `binary`.
    * `Decimal`:
        * Встроенный в Python `Decimal`.
        * В запросах и ответах обрабатывается так же, как и `float`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  7. build-logic/documentation/src/test/resources/org/gradle/test/GroovyClassWithConstants.groovy

    class GroovyClassWithConstants {
        static final int INT_CONST = 9
        public static final String STRING_CONST = 'some-string'
        static final Object OBJECT_CONST = new GroovyClassWithConstants()
        static final def BIG_DECIMAL_CONST = 1.02
    
        String ignored = 'ignore'
        final int ignored2 = 1001
        static def ignored3
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 356 bytes
    - Viewed (0)
  8. docs/uk/docs/tutorial/extra-data-types.md

    * `bytes`:
        * Стандартний Пайтонівський `bytes`.
        * У запитах і відповідях це буде оброблено як `str`.
        * Згенерована схема буде вказувати, що це `str` з "форматом" `binary`.
    * `Decimal`:
        * Стандартний Пайтонівський `Decimal`.
        * У запитах і відповідях це буде оброблено так само, як і `float`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/extra-data-types.md

            * 生成されたスキーマは`set`の値が一意であることを指定します(JSON Schemaの`uniqueItems`を使用します)。
    * `bytes`:
        * Pythonの標準的な`bytes`です。
        * リクエストとレスポンスでは`str`として扱われます。
        * 生成されたスキーマは`str`で`binary`の「フォーマット」持つことを指定します。
    * `Decimal`:
        * Pythonの標準的な`Decimal`です。
        * リクエストやレスポンスでは`float`と同じように扱います。
    
    * Pydanticの全ての有効な型はこちらで確認できます: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic data types</a>。
    ## 例
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/extra-data-types.md

    * `bytes`:
        * Standard Python `bytes`.
        * In requests and responses will be treated as `str`.
        * The generated schema will specify that it's a `str` with `binary` "format".
    * `Decimal`:
        * Standard Python `Decimal`.
        * In requests and responses, handled the same as a `float`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top