[xquery-talk] avoid divide by zero

Michael Kay mhk at mhk.me.uk
Thu May 25 11:39:30 PDT 2006


> I have a statement that might cause divide by zero, is there 
> any statement to replace zero by one when it occurs. 

if ($x=0) then 1 else $x

Michael Kay
http://www.saxonica.com/



More information about the talk mailing list