Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 19 May 2004 @ 09:09:50 GMT


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


Subj:   Re: Rounding vs truncation
 
From:   Willimott, Andrew

Hi Rachel,

You need to first convert either the numerator and denominator to a decimal or float to first get a non integer answer to 10/4.

Decimal will give you 2.5, but float will return 3.

     select cast(10 as float)/4;

The DBSControl Record RoundHalfwayMagUp flag may also be a factor.


Andrew W



     
  <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