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?
↧