title: How to convert meters into feet and inches
body: <p>Creating a program and I have been struggling to convert metres to feet and inches, but I finally got it working I think.</p>
  
  <p>My issue now is with the variable inchesleft it is a int and I am struggling to work out how to make it an integer as I want to drop the remainder of the inches value so I can get a value of 6feet 4inches etc.</p>
  
  <p>code below:</p>
  
  <pre><code>double inft, convert, inchesleft, value = 0.3048;
  int ft;
  string input;
  
  Console.WriteLine("please enter amount of metres");
  input = Console.ReadLine();
  convert = double.Parse(input);
  
  inft = convert / value;
  ft = (int)inft;
  inchesleft = convert / value % 1 *12;
  
  
  Console.WriteLine("{0} feet {1} inches.", ft, inchesleft);
  Console.ReadLine();
  </code></pre>