Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 29 Jun 2006 @ 19:14:29 GMT


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


Subj:   Decimal rounding
 
From:   Pandey, Vivek

Why do we get same answers for the below decimal rounding? Excel gives 6.9 & 6.8 respectively.

     BTEQ -- Enter your DBC/SQL request or BTEQ command:
     sel cast(6.85 as dec(2,1));

     sel cast(6.85 as dec(2,1));

      *** Query completed. One row found. One column returned.
      *** Total elapsed time was 1 second.

     6.85
     ----
      6.8

      BTEQ -- Enter your DBC/SQL request or BTEQ command:
     sel cast(6.75 as dec(2,1));

     sel cast(6.75 as dec(2,1));

      *** Query completed. One row found. One column returned.
      *** Total elapsed time was 1 second.

     6.75
     ----
      6.8

Thanks, Vivek



     
  <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