sql - SSIS Derived Column Rounds Values -
sql - SSIS Derived Column Rounds Values -
one of columns selecting in ssis query, transtotal
, has values this:
---- 4615 3845 8706 8725 4205 ----
i derived column, need insert decimal, have added expression:
(dt_numeric,10,2)(transtotal / 100)
expecting results like:
----- 46.15 38.45 87.06 87.25 42.05 -----
but instead, like:
----- 46.00 38.00 87.00 87.00 42.00 -----
what doing wrong?
if transtotal
int
, code performing first integer partition (transtotal / 100
, meaning 8725/100 equals 87 because it's integer) , converting numeric
. need first convert transtotal
numeric
, perform division:
((dt_numeric,10,2) transtotal) / 100
sql sql-server sql-server-2008 ssis
Comments
Post a Comment