Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 19 May 2004 @ 09:10:48 GMT


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


Subj:   Re: Rounding vs truncation
 
From:   Sonny Chee

Hi Rachel,

You need to cast your answer to decimal(1,0) to get the rounding you want.

Try this:

     select cast(2.50001 as decimal(10,0))

Unfortunately, Teradata rounds down from 0.5 not from 0.4.


Sonny.



     
  <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