Re: result type of power operator...

From: Paul Graham (pgraham@cadence.com)
Date: Fri Mar 01 2002 - 08:10:24 PST


Precedence: bulk

I think that the rule about exponentiation was intended to cover the case of
a negative exponent. So:

    x ** -1

will generally be a real number. The text:

    The result of the power operator shall be real if either operand is a
    real,integer,or signed.

should be changed to read:

    The result of the power operator shall be real if either operand is
    real, or if the second operand is negative.

Paul



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:55:35 PDT and
sponsored by Boyd Technology, Inc.