Skip to main content Skip to complementary content

Div

Div() returns the integer part of the arithmetic division of the first argument by the second argument. Both parameters are interpreted as real numbers, that is, they do not have to be integers.

Syntax:  

Div(integer_number1, integer_number2)

Return data type: integer

Examples and results:  

  • Div( 7,2 ): returns 3
  • Div( 7.1,2.3 ): returns 3
  • Div( 9,3 ): returns 3
  • Div( -4,3 ): returns -1
  • Div( 4,-3 ): returns -1
  • Div( -4,-3 ): returns 1

Learn more

 

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com