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 Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023