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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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   ????

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

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
Champion III
Champion III

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