<?xml version="1.0" encoding="windows-1252"?>
<node id="87398" title="Re: 0 illegal modulus?" created="2001-06-11 03:11:43" updated="2005-07-21 01:27:14">
<type id="11">
note</type>
<author id="81921">
Vynce</author>
<data>
<field name="doctext">
&lt;P&gt;
well, you could override the modulus operator if you prefer, and use an idiom like 
&lt;CODE&gt;
$ans = ($y*1) ? $x % $y : 0;
&lt;/CODE&gt;
see [overload] for details. 
&lt;/P&gt;
. 
</field>
<field name="root_node">
87384</field>
<field name="parent_node">
87384</field>
</data>
</node>
