Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Tue, 01 Aug 2000 @ 14:43:46 GMT





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




Subj:   Re: True rounding algorithm
 
From:   Michael Larkins



Hi All:

It would appear that V2R2 has a bug regarding the "implicit" conversion of the data types. It is good that it has been fixed in V2R3.

However, I have not ever trusted the implicit CAST and always use the explicit CAST function.

Try the following as I think you will like the results:

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

Best regards,

Mike





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008