Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 31 Jul 2000 @ 19:43:43 GMT


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


Subj:   True rounding algorithm
 
From:   Jeremy Christiansen

Does anyone know the true rounding algorithm for Teradata numeric datatypes? Consider the following:

     sel 99.5 (decimal(3,0))
        ,99.50 (decimal(3,0))
        ,99.500 (decimal(3,0))
        ,99.5000 (decimal(3,0))
        ,99.50000 (decimal(3,0))
     ;

Apparently (in V2R2) 99.5, 99.50, and 99.5000 are rounded to 100, but 99.500 is not.



     
  <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