RoundHalfwayMagUp - Analytics Database - Teradata Vantage

Database Utilities

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-05-02
dita:mapPath
ymn1628096214445.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
vkz1472241255652
lifecycle
latest
Product Category
Teradata Vantage™

Determines how rounding is performed when computing values of DECIMAL type. A halfway value is exactly halfway between representable decimal values.

Field Group

General

Valid Settings

The rounding behavior is different depending upon the setting of the RoundHalfwayMagUp field.

IF you set the field to… THEN the Teradata system uses the rounding semantics…
TRUE appropriate for many business applications:

The magnitudes of halfway values are rounded up. Halfway values are rounded away from zero so that positive halfway values are rounded up and negative halfway values are rounded down (toward negative infinity). For example, a value of 2.5 is rounded to 3.

FALSE traditional for Vantage:

A halfway value is rounded up or down so that the least significant digit is even. For example, a value of 2.5 is rounded to 2.

Default

FALSE

Changes Take Effect

After the next database restart.