Module URI
http://xqdoc.org/sample-math-lib
Module Description
This module provides a sample library module of simple math functions that are authored according to the proposed XQuery Style Guidelines
- Author: Curt Kohler
- Author: Darin McBeath
- Version: 1.0
- Since: January 17, 2006
Function Summary
- add-operands
Add two numbers.
- ( $operand1 as xs:integer ,
$operand2 as xs:integer) as xs:integer
- divide-operands
Divide two numbers.
- ( $operand1 as xs:integer ,
$operand2 as xs:integer) as xs:integer
- multiply-operands
Multiply two numbers.
- ( $operand1 as xs:integer ,
$operand2 as xs:integer) as xs:integer
- subtract-operands
Subtract two numbers.
- ( $operand1 as xs:integer ,
$operand2 as xs:integer) as xs:integer
Function Detail
add-operands
-
view code
- ( $operand1 as xs:integer ,
$operand2 as xs:integer) as xs:integer
Add two numbers.
- Parameters:
- $operand1 - first operand.
- $operand2 - second operand.
- Return:
- result of the addition operation.
divide-operands
-
view code
- ( $operand1 as xs:integer ,
$operand2 as xs:integer) as xs:integer
Divide two numbers.
- Parameters:
- $operand1 - first operand.
- $operand2 - second operand.
- Return:
- result of the division operation.
multiply-operands
-
view code
- ( $operand1 as xs:integer ,
$operand2 as xs:integer) as xs:integer
Multiply two numbers.
- Parameters:
- $operand1 - first operand.
- $operand2 - second operand.
- Return:
- result of the multiplication operation.
subtract-operands
-
view code
- ( $operand1 as xs:integer ,
$operand2 as xs:integer) as xs:integer
Subtract two numbers.
- Parameters:
- $operand1 - first operand.
- $operand2 - second operand.
- Return:
- result of the subtraction operation.
Created by xqDoc-Lite version 1.0 on Thu Feb 04 11:49:38 CET 2010