Skip to content

Commit d70a7cd

Browse files
committed
docs: clarify Decimal field configuration
Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
1 parent 10c918c commit d70a7cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/advanced/decimal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For the database, **SQLModel** will use [SQLAlchemy's `DECIMAL` type](https://do
3131

3232
## Decimals in SQLModel
3333

34-
Let's say that each hero in the database will have an amount of money. We could make that field a `Decimal` type and set the number of digits and decimal places in the `Field()` function:
34+
Let's say that each hero in the database will have an amount of money. We can define that field as a `Decimal` and configure the maximum number of digits and decimal places using the parameters of `Field()`:
3535

3636
{* ./docs_src/advanced/decimal/tutorial001_py310.py ln[1:11] hl[11] *}
3737

0 commit comments

Comments
 (0)