How can I divide two integers stored in variables in Python?
<p>I've got two numbers stored in varibles, a and b, and i'd like to see of the ratio of those two is an integer or not in python.  However when I try</p>

<pre><code>result = a./b
</code></pre>

<p>it gives me a </p>

<pre><code>SyntaxError: invalid syntax
</code></pre>

<p>however if I say </p>

<pre><code>result = a/b
</code></pre>

<p>it truncates the decimal portion.  How can I get the full numbeer to test for integrality? </p>

<p>I was going to use</p>

<pre><code>if (not isinstance(result, (int, long))): 
    then do something for non-integer numbers..
</code></pre>

<p>Thanks, and i'm using python 2.7.1</p>
