Decimal Rounding and convert to Varchar
Posted: Mon Apr 11, 2011 11:58 pm
I have a requirement wherein I need to round off incoming decimal data and convert to varchar and then right to seq file without leading or trailing zeroes.
Rounding Off condition as below
Suppose data is 345.5 or lower output should be 345 and if it is greater than 345.5 then output should be 346.
Any suggestions?
Rounding Off condition as below
Suppose data is 345.5 or lower output should be 345 and if it is greater than 345.5 then output should be 346.
Any suggestions?