Xceed Chart for WinForms v4.4 Documentation
Divide
Welcome to Xceed Chart for WinForms v4.4 > User Guide > Data Manipulation > Functions > Divide

Syntax

DIV(A1; A2)

Arguments

Accepts two arguments, which may be either scalar values or arrays.

Result

If both arguments are scalar values, the result is a scalar value.
If at least one of the arguments is an array, the result is also an array. The size of the result is equal to the size of the input array.
If both of the arguments are arrays, the size of the result is equal to the size of the smallest input array. 

Description

Each element of the result is the quotient of the corresponding elements of the input arguments. If the division for a particular element is invalid (division by zero), then this element is marked as invalid in the result array.   

Example 1

Expression: DIV(arg1; 2)

arg1 5 4 28 6 10
result 2.5 2 14 3 5

Example 2

Expression: DIV(arg1; arg2)  

arg1 5 4 28 6 10
arg2 5 0 7 3 4
result 1 null
(Empty Data Point)
4 2 2.5

Related Examples

Windows Forms: Data Manipulation\Functions\Basic Functions