Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Converting Number to Character - response (4) by M.Saeed Khurram

$
0
0

Stephen,
Basically in order to avoid this round off you need to devide by the same percision as the value.
for example in case of 18750 we need to case it to decimal to get result as decimal and we need to devide it by 1000.00 to obtain correct percision in result.
for value 11, you want to get result .011, can you please tell how many digits in percision you need?
else you can use query like this:

SELECT 
CAST(COL_NAME  AS DECIMAL(18,2))  / 1000.00

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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