16.20 - Usage Notes - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ SQL Functions, Expressions, and Predicates

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1145-162K

TRUNC functions as follows:

  • It truncates places_value places to the right of the decimal point if places_value is positive.
  • It truncates (makes 0) places_value places to the left of the decimal point if places_value is negative.
  • It truncates to 0 places if places_value is zero or is omitted.
  • If numeric_value or places_value is NULL, the function returns NULL.