This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28309 - [XP3.1] 3.5 Arithmetic Expressions div/idiv?
Summary: [XP3.1] 3.5 Arithmetic Expressions div/idiv?
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XPath 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-23 01:20 UTC by Patrick Durusau
Modified: 2015-07-12 01:09 UTC (History)
1 user (show)

See Also:


Attachments

Description Patrick Durusau 2015-03-23 01:20:57 UTC
3.5 Arithmetic Expressions

"XPath 3.1 supports two division operators named div and idiv. Each of these operators accepts two operands of any numeric type. As described in [XQuery and XPath Functions and Operators 3.1], $arg1 idiv $arg2 is equivalent to ($arg1 div $arg2) cast as xs:integer? except for error cases."

Correct URL: http://www.w3.org/TR/xpath-functions-31/#func-numeric-integer-divide  4.2.5 op:numeric-integer-divide 

BTW, [XQuery and XPath Functions and Operators 3.1] says: 4.2.4 op:numeric-divide, 4.2.5 op:numeric-integer-divide

Probably best not to use slang, "div," "idiv" when making references.
Comment 1 Jonathan Robie 2015-07-12 01:09:25 UTC
Done.