Returns the result of dividing the value of
The result is rounded to the nearest month.
xs:yearMonthDurationand a numeric value.
The result is the
xs:yearMonthDuration whose length in months is equal to
the result of applying the
fn:round function to the value obtained by
dividing the length in months of
$arg1 by the value of
$arg2 is positive or negative infinity, the result is a zero-length
$arg2 is positive or negative zero, the result overflows and
is handled as described in .
For handling of overflow and underflow, see .
A dynamic error is raised if
Either operand (and therefore the result) may be negative.