[Bug 5617] [F&O] Summary of numeric-unary-plus

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5617


mike@saxonica.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #4 from mike@saxonica.com  2008-04-22 17:26 -------
On 22 April 2008 the WG asked the editor to propose revised text for
op:unary-plus and op:unary-minus that clarifies that type promotion can take
place (as is stated in the table showing the type promotion rules in the
introductory section of 6.2.)

Proposed text is as follows:

For op:unary-plus (6.2.7) replace the Summary with:

Summary: Backs up the unary "+" operator and returns its operand with the value
unchanged: (+ $arg). 

The returned value is equal to $arg, and is an instance of xs:integer,
xs:decimal, xs:double or xs:float depending on the type of $arg.

For op:unary-minus (6.2.8) replace the Summary with:

Summary: Backs up the unary "-" operator and returns its operand with the sign
reversed: (- $arg). 

The returned value is an instance of xs:integer, xs:decimal, xs:double or
xs:float depending on the type of $arg.

To the originator: please close this bug if you are content with this
resolution.

Received on Tuesday, 22 April 2008 17:26:38 UTC