XML Script logo
Function _OP_DIVIDE
Name

_OP_DIVIDE

Returns

number

Parameter count

2

Parameter 1

operand1, a number

Parameter 2

operand2, a number

Description

Divides 'operand1' by 'operand2'.
If 'operand2' is 0 the processor gives a divide by zero warning and the expression evaluates to 0. Both operands are converted to numbers before division takes place. Care should be taken to make sure that 'operand2' is not a text string, otherwise it will evaluate to 0 and give a divide by zero warning.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited