Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 04 Mar 2014 @ 20:34:41 GMT


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


Subj:   Divison issue when using 64 bit datatype int64_t for signed values
 
From:   Satti, Faheem

Hi folks,

Can anyone help me with this issue .

When trying to divide 2 signed 64 bit integers as datatype 'int64_t',get errornous results for '-ve' values.

int64_t lv_sum_values=0;

int64_t lv_sum_time=0;

xx2= (lv_sum_values/lv_sum_time)*100;


XX2 results are good for positive values but when lv_sum_values=(-0.50) and lv_sum_time=5.00 it gaves me 0.00 answer


With Regards

Faheem Satti



     
  <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