Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 16 Jan 2013 @ 20:00:23 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Teradata decimal roundoff issue
 
From:   Swami, Minakshi

I have issue with teradata roundoff decimal.My target is decimal(7,2).The source values are coming as below

20.68560 -> 20.68 (If 3rd digit is 5 AND preceding value if EVEN, then it is truncated)

20.69560 -> 20.70 (If 3rd digit is 5 AND preceding value if ODD, then it is rounded)


I want wherever the third decimal place is 5 or gretr than 5 it shoud be roundoff

20.68560 should give 20.70 not 20.68.


Any suggestion.



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016