title: i have a problem with using #define it stops at zero
body: <pre><code>#include&lt;stdio.h&gt;
  
  #define IC 60  
  #define TAX_PERCENTAGE 7.5
  
  int main()
  {
  
      float tax_decimal = TAX_PERCENTAGE / 100;
      float ST = IC * tax_decimal;
      float total = IC + ST;
      printf(&quot;Price = %f\nTax = %f\nTotal = %f\n\n&quot;,IC, ST,total);
  
  }
  </code></pre>
  <p>this is my code</p>
  <p>why does #define TAX_PERCENTAGE stop at zero? because 7.5 / 100 = 0.075 but it just stops at 0. is it because #define is an int?</p>
  <p>how do i fix this?</p>
  <p>thanks</p>