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

float data type in teradata - response (1) by ulrich

$
0
0
From the manual   Decimal Results and Rounding When computing an expression, decimal results that are not exact are rounded, not truncated. For more information on rounding rules and how the RoundHalfwayMagUp field in DBSControl affects rounding, see “Decimal/Numeric Data Types” in SQL Data Types and Literals and “DBS Control utility” in Utilities.   And  "Suppose the column contains values like 20.123456 The target column datatype is decimal(16,2)..What will happen if I dont cast the source column..Will I get the same result as one i will get after cast as decimal(16,2)." Why don't you just try?  

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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