Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Tue, 22 Jun 2004 @ 14:43:00 GMT





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




Subj:   Re: About RoundHalfwayMagUp in BTEQ Session Level
 
From:   Glen Blood



This will work for positive numbers. However, mathematically, negatives at .5 should round down. In other words, -2.5 becomes -3, not -2.

Personally, if I need a rounded values I always add/subtract the .5 (the precise decimal place is dependent on the required precision) and truncate.


Glen





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008