>>>>> "Matt" == Matt Pulver <mpul...@unitytechgroup.com> writes:

 Matt> ERROR:  division by zero

 Matt> Question: If Infinity and NaN are supported, then why throw an
 Matt> exception here, instead of returning Infinity?

Spec says so:

  4) The dyadic arithmetic operators <plus sign>, <minus sign>,
     <asterisk>, and <solidus> (+, -, *, and /, respectively) specify
     addition, subtraction, multiplication, and division, respectively.
     If the value of a divisor is zero, then an exception condition is
     raised: data exception -- division by zero.

-- 
Andrew (irc:RhodiumToad)

Reply via email to