Dividing in Neo4j
<p>Everytime I try to divide something in neo4j, I keep getting zero. I am using the following query: </p>

<pre><code>MATCH (m:Member)-[:ACTIVITY{issue_d:"16-Jan"}]-&gt;(l:Loan)
MATCH (m)-[:ACTIVITY]-&gt;(p:Payments)
WHERE l.installment&lt;1000 AND p.total_pymnt&gt;0
RETURN (l.funded_amnt-p.total_pymnt),(l.funded_amnt-p.total_pymnt)/(l.funded_amnt), l.funded_amnt, p.total_pymnt, m.member_id
LIMIT 1000;
</code></pre>

<p>I checked to make sure that my values for <code>funded_amnt</code> and <code>total_pymnt</code> are not messing up the operation they seem good:</p>

<p><a href="https://i.stack.imgur.com/ghB0d.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ghB0d.png" alt="screenshot - query result"></a></p>

<p>Even when I just do: </p>

<pre><code>500/l.funded_amnt 
</code></pre>

<p>I still get zero. What am I doing wrong? </p>