From d9ca179f5901c4c6bc5dfa9ce87f00b9de9e5fd0 Mon Sep 17 00:00:00 2001 From: runekock Date: Tue, 2 Sep 2025 13:49:31 +0200 Subject: [PATCH] Update ceiling-transact-sql.md Actually observed behavior as of version 15.0.2140. This can give unexpected results, such as in this case: declare @a numeric(38,12) = 7; declare @b numeric(38,12) = 1.5; select ceiling(@a) + @b; --- docs/t-sql/functions/ceiling-transact-sql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/t-sql/functions/ceiling-transact-sql.md b/docs/t-sql/functions/ceiling-transact-sql.md index 2e052d33f47..4f004958808 100644 --- a/docs/t-sql/functions/ceiling-transact-sql.md +++ b/docs/t-sql/functions/ceiling-transact-sql.md @@ -46,7 +46,7 @@ The return type depends on the input type of *numeric_expression*: | Input type | Return type | | --- | --- | | **float**, **real** | **float** | -| **decimal(*p*, *s*)** | **decimal(38, *s*)** | +| **decimal(*p*, *s*)** | **decimal(*p*, 0)** | | **int**, **smallint**, **tinyint** | **int** | | **bigint** | **bigint** | | **money**, **smallmoney** | **money** |