func.safe_divide

Equivalent to the division operator (X / Y), but returns NULL if an error occurs, such as a division by zero error

Equivalent to the division operator (X / Y), but returns NULL if an error occurs, such as a division by zero error

Syntax

func.safe_divide(numerator numeric, denominator numeric, divide_by_zero_value)

Examples

func.safe_divide(get_column(table, 'VALUE__MC'), table.RATE, 0.0)
func.safe_divide(get_column(table, 'Total_Weight'), (table.PickHours + table.BreakHours), 0.00)
Last modified November 27, 2023 at 12:56 PM EST: Restructured the file structure/a few changes (f6c58b8)