title: jeo=(1/(1+decade)); not giving me accurate answer
body: <pre><code>int decade;
  float jeo;
  PRINT("Enter Decade point =\r\n");
  scanf("%d",&amp;decade);
  print_decimal(decade);
  PRINT("\r\n");
  jeo=(1/(1+decade));
  PRINT("Decade point =");
  print_decimal(jeo);//my function for showing floating point number.
  PRINT("\r\n");
  </code></pre>
  
  <p>I have wrote this code in IAR embedded workbench software for ARM controller, but it's not giving me accurate answer, can anyone tell me why??
  "when i am entering 3. it's giving me 0 answer". </p>