Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 13 Apr 2007 @ 15:13:11 GMT


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


Subj:   Strange rounding
 
From:   martin.fuchs

Hello to you all,

using Teradata 6.1.1 we encountered a strange rounding situation (in FastExport, but also in Queryman)

     select CAST((3649.99 (FORMAT '--Z(15)9,V9(3)')) AS  CHAR(19))

delivers 3650.00, whereas slight changes

     select CAST((3649.99 (FORMAT '--Z(14)9,V9(3)')) AS  CHAR(19))

or

     select CAST((3649.99 (FORMAT '--Z(15)9,V9(4)')) AS  CHAR(19))

deliver the correct value 3649.99.

Does anyone know the reason for this ? (the maxdecimal value in DBSControl is 15, if that has something to do with the phenomenon)


With best regards

Martin Fuchs



     
  <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