- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 414 for Float (0.15 sec)
-
docs_src/body_multiple_params/tutorial004.py
from typing import Union from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None class User(BaseModel): username: str full_name: Union[str, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 10 18:49:18 GMT 2023 - 653 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial004_an_py39.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None class User(BaseModel): username: str full_name: Union[str, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 674 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/config/cbean/cq/bs/BsKeyMatchCQ.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 - 68.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
assertEquals(expected6, DocumentUtil.getValue(doc, "key6", Double.class)); } public void test_float() { Map<String, Object> doc = new HashMap<>(); float expected7 = 999.999f; doc.put("key7", expected7); assertEquals(expected7, DocumentUtil.getValue(doc, "key7", Float.class)); } public void test_boolean() { Map<String, Object> doc = new HashMap<>();
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4K bytes - Viewed (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PrimitiveKotlinTypeStrings.kt
Plain Text - Registered: Wed Feb 28 11:36:09 GMT 2024 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 1.4K bytes - Viewed (0) -
docs_src/body/tutorial004_py310.py
from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None app = FastAPI() @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item, q: str | None = None): result = {"item_id": item_id, **item.dict()} if q: result.update({"q": q})
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 09 14:28:58 GMT 2024 - 408 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java
return ((Long) value).floatValue(); } if (value instanceof Float) { return ((Float) value); } if (value instanceof Double) { return ((Double) value).floatValue(); } if (value != null) { return Float.parseFloat(value.toString()); } return 0.0f; }
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 2.8K bytes - Viewed (0) -
docs_src/response_model/tutorial001_01_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: list[str] = [] @app.post("/items/") async def create_item(item: Item) -> Item: return item @app.get("/items/") async def read_items() -> list[Item]:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 507 bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/NumberConversionUtil.java
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 5.7K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial003_an_py39.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( item_id: int, item: Annotated[ Item, Body( examples=[ {
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 692 bytes - Viewed (0)