Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 11 Sep 2003 @ 22:43:12 GMT


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


Subj:   Re: Rounding and the ceil function
 
From:   Burton, Bruce

so if I want anything over the integer value to be rounded up like the SAS ceil function I would use the below (ie/ I want 2.1 to be rounded to 3, 2.0 to stay at 2, etc.)?

select sum(cast(mou+0.99 as integer)) as mou <---assuming 2 decimal places on the pre-cast value.

Can anyone see any issues with this?


Thanks,

Bruce



     
  <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