Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

How to Use Round Function In Teradata - response (4) by ulrich

$
0
0
The keyword is RoundHalfwayMagUp its a dbscontroll setting and defines how Teradata is handling the rounding. Default is FALSE from the manuals: Purpose Indicates how rounding should be 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. Default FALSE Changes Take Effect After the next Teradata Database restart. IF you set the field to… THEN the Teradata Database 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 Teradata Database: 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.  

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>