title: Why is my equation returning an Int number rather than a float? (C, Dev-C++)
body: <p>I'm new to C and trying to figure out why my code is returning an int to my float variable <code>pounds</code> rather than the float I'm expecting. When testing I can only get my code to return integers. Here's my code and I am using Dev-C++ v4.9.9.2 as per instructed by my professor.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  #define WALK_CAL 5
  #define STAND_CAL 2
  #define DRINK_CAL 20
  #define FOOD_CAL 40
  #define CALS_PER_POUND 3500
  
  main(){
     int minWalk;
     int minStand;
     int minDrink;
     int minEat;
     float pounds;
  
     printf("How many minutes were you walking? \n");
     scanf("%d", &amp;minWalk);
  
     printf("How many minutes were you standing? \n");
     scanf("%d", &amp;minStand);
  
     printf("How many minutes were you drinking? \n");
     scanf("%d", &amp;minDrink);
  
     printf("How many minutes were you eating? \n");
     scanf("%d", &amp;minEat);
  
     pounds = ((((minDrink*DRINK_CAL)+(minEat*FOOD_CAL))-((minWalk*WALK_CAL)+(minStand*STAND_CAL)))/CALS_PER_POUND)*-1;
  
     if(pounds &gt;= 0){
        printf("You lost %.3f pounds today! \n", pounds);
     } else {
        printf("Weight lost is %.3f pounds. \n", pounds);
     }
  
     system("pause");
  
     return 0;
  }
  </code></pre>