int_div

Description

Returns the integer quotient of the dividend divided by the divisor and truncates the remainder.

Return type

int64

Domain

This is a scalar function (calculates a single output value for a single input row.)

Categories

Usage

int_div(dividend, divisor)

Argument

Type

Optional

Repeatable

Restrictions

dividend

int64

no

no

none

divisor

int64

no

no

none

Examples

make_col billed_weeks:int_div(@.billed_days, 7)

Create a column ‘billed_weeks’ with the total number of fully billed weeks.