The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 04-18-2007
niketan niketan is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 4
Why dont u store the division result in the float variable ... I guess compiler will auto cast to higher ... Just check with this

float f:

f= b/a * 100;

and then checking with 25 ...