Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 28 Nov 2001 @ 18:47:01 GMT


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


Subj:   Re: Decimal(18,0)
 
From:   Geoffrey Rommel

You are probably using Queryman ... �no? Queryman uses ODBC, which stores numbers as "double" (FLOAT), which has less precision than decimal(18). Hence your last few digits appear to be wrong.

If you use BTEQ, the numbers should appear correctly. If you must use Queryman, you will have to cast the numbers twice like so:

select cast(cast( bignumber as format 'zzz,zzz,zzz,zzz,zzz,zz9') as char(24)) ...

--wgr=



     
  <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