Skip to content

Commit 89b8e5c

Browse files
authored
Correct formula for decimal
AFAICT, the correct formula should use `max(s, 6)`, not `min(s, 6)`.
1 parent ab0c654 commit 89b8e5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/t-sql/functions/avg-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The evaluated result of *expression* determines the return type.
6262
|**smallint**|**int**|
6363
|**int**|**int**|
6464
|**bigint**|**bigint**|
65-
|**decimal** category (p, s)|**decimal(38, min(s,6))**|
65+
|**decimal** category (p, s)|**decimal(38, max(s,6))**|
6666
|**money** and **smallmoney** category|**money**|
6767
|**float** and **real** category|**float**|
6868

0 commit comments

Comments
 (0)