Skip to main content
Planview Customer Success Center

Div Function

Div (number as Numeric, divisor as Numeric, errorValue as Numeric) as Numeric

Category: Math
Description: Return number/divisor if divisor<>0 otherwise it will return errorValue
Supported Context: FormulaField And BusinessRules
Parameters:  
number as Numeric Positive or negative numeric value or reference to a numeric field
divisor as Numeric Positive or negative numeric value or reference to a numeric field
errorValue as Numeric Resulting value if the expression throws a runtime error
Returned value as Numeric Returns a numeric value equal to the "number" divided by the "divisor" parameters, if divisor is equal to "0" the resulting value will be equal to the value set in the "errorValue" parameter