W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2003

RE: [F&O] op:numeric-mod

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Fri, 21 Nov 2003 15:30:17 -0800
Message-ID: <EDB607C8AC991F40BE646533A1A673E8AD0503@RED-MSG-42.redmond.corp.microsoft.com>
To: "Priscilla Walmsley" <priscilla@walmsley.com>, <public-qt-comments@w3.org>

Needed some words.  Fixed!

All the best, Ashok

-----Original Message-----
From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Priscilla
Walmsley
Sent: Friday, November 21, 2003 6:31 AM
To: public-qt-comments@w3.org
Subject: [F&O] op:numeric-mod


The description of op:numeric-mod says:

"If $arg2 is zero, then an error is raised [division by zero]."

Shouldn't this say, 

If $arg2 is zero, and the operands are of type xs:integer or xs:decimal,
then an error is raised [division by zero]."

Because, as it says later, if they are float or double, it returns NaN
rather than raising an error.

Or is that sentence intended to be with the previous paragraph, which
appears to cover only the case where the operands are integer/decimal?
If
that's the case, maybe the sentence should be moved up to that
paragraph.


Thanks,
Priscilla
Received on Friday, 21 November 2003 18:32:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:03 GMT