CEILING Result Type and Attributes - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The result type is the same data type as that of the numeric input argument.

If the input argument is defined as a DECIMAL/NUMERIC with precision less than 38, the return DECIMAL/NUMERIC value precision increases by 1. For example, DECIMAL(6,4) returns as DECIMAL(7,4). If the precision is 38, the scale reduces by 1 unless the scale is 0. For example, a DECIMAL(38,38) returns as DECIMAL(38,37).

For information on default data type formats, see Data Type Formats and Format Phrases.