title: Working with BigIntegers in C#
body: <p>I am testing out BigIntegers.</p>
  
  <p>When I take a large odd number and divide it by 2, I get an integer as an anwser, without any indication that it could not divide the number exactly.</p>
  
  <p>So first question is how do I know that two numbers divide exactly.</p>
  
  <p>I then tested it with a small number, an this code:</p>
  
  <pre><code>        string myNumberAsString = "25";
          System.Text.UTF8Encoding  encoding=new System.Text.UTF8Encoding();
          byte[] myNumberAsByteArray = encoding.GetBytes(myNumberAsString);
          BigInteger myNumber = new BigInteger(myNumberAsByteArray);
          Console.WriteLine(myNumber / 2);
  </code></pre>
  
  <p>Gives the result 6809. Anybody know why or can see what is wrong with my code?</p>
  
  <p>I am using the .net 4.0 implementation of BigInteger</p>