Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Frank_Hartmann
Master II
Master II

mod function

is anybody able to tell me how mod function works?

why is

mod(-4,3)=2   ????

1 Solution

Accepted Solutions
swuehl
MVP
MVP

It's in detail explained here:

Euclidean division - Wikipedia, the free encyclopedia

In your example, the quotient would be -2 and the remainder 2:

-2*3 +2 = -4

View solution in original post

1 Reply
swuehl
MVP
MVP

It's in detail explained here:

Euclidean division - Wikipedia, the free encyclopedia

In your example, the quotient would be -2 and the remainder 2:

-2*3 +2 = -4