- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 532 for Float (0.08 sec)
-
docs_src/response_model/tutorial006_py39.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: float = 10.5 items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2}, "baz": { "name": "Baz",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 848 bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial005_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() @app.post( "/items/", response_model=Item, summary="Create an item", response_description="The created item", ) async def create_item(item: Item): """
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 698 bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedLong.java
} /** * Returns the value of this {@code UnsignedLong} as a {@code float}, analogous to a widening * primitive conversion from {@code long} to {@code float}, and correctly rounded. */ @Override public float floatValue() { if (value >= 0) { return (float) value; } // The top bit is set, which means that the float value is going to come from the top 24 bits.Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/bsentity/BsElevateWord.java
// ======== public Float getBoost() { checkSpecifiedProperty("boost"); return boost; } public void setBoost(Float value) { registerModifiedProperty("boost"); this.boost = value; } public String getCreatedBy() {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 7.1K bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial005_py39.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: set[str] = set() @app.post( "/items/", response_model=Item, summary="Create an item", response_description="The created item", )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 736 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java
/** * Converts an object value to a float for score calculations. * Handles Float and String types, returning 0.0f for unsupported types. * * @param value the object to convert to float * @return float representation of the value, or 0.0f if conversion fails */ protected float toFloat(final Object value) { if (value instanceof final Float f) { return f; }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 27.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
return Longs.fromBytes(b8, b7, b6, b5, b4, b3, b2, b1); } /** * Reads a {@code float} as specified by {@link DataInputStream#readFloat()}, except using * little-endian byte order. * * @return the next four bytes of the input stream, interpreted as a {@code float} in * little-endian byte order * @throws IOException if an I/O error occurs */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/BooleanQueryCommand.java
@Override protected String getQueryClassName() { return BooleanQuery.class.getSimpleName(); } @Override public QueryBuilder execute(final QueryContext context, final Query query, final float boost) { if (query instanceof final BooleanQuery booleanQuery) { if (logger.isDebugEnabled()) { logger.debug("BooleanQuery: query={}, boost={}", query, boost); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 3.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-data-types.md
# 追加データ型 今までは、以下のような一般的なデータ型を使用してきました: * `int` * `float` * `str` * `bool` しかし、より複雑なデータ型を使用することもできます。 そして、今まで見てきたのと同じ機能を持つことになります: * 素晴らしいエディタのサポート * 受信したリクエストからのデータ変換 * レスポンスデータのデータ変換 * データの検証 * 自動注釈と文書化 ## 他のデータ型 ここでは、使用できる追加のデータ型のいくつかを紹介します: * `UUID`: * 多くのデータベースやシステムで共通のIDとして使用される、標準的な「ユニバーサルにユニークな識別子」です。 * リクエストとレスポンスでは`str`として表現されます。 * `datetime.datetime`:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java
} /** * Retrieves a setting value as a float. * @param key The key of the setting. * @param defaultValue The default value if the setting is not found. * @return The setting value as a float. */ public float getAsFloat(final String key, final float defaultValue) { final Object obj = get(key); final float value; if (obj == null) {Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 20.1K bytes - Viewed (0)