Functions Index :: D :: Div2

[<< up one level]

Module:

numeric :: core

Definition:

Div2(val x1, val x2)

Description:

Returns the quotient of the division of its arguments. [1]

Examples:

v = Div2(5, 2) # v == 2 because both args are ints

w = Div2(5.0, 2) # v == 2.5 because 5.0 forces float division

 

[<< top]

 


[1]: The function is provided as a building block of more complex functions, particularly for operations on arrays. See the documentation of the array package and the ArrayOpFunc, ArrayOpArrayFunc and ArraySum functions.