Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

MOD function

Dear All,

bit confused in MOD function

can any one tell me output for

Mod(7,12)

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Mod returns the reminder of 7 / 12 in this case is 7 because 7 divides 12 is 0 with 7 as reminder.

Mod(15,3) is 0 because 15/3 is 5 (5*3=15) with reminder 0

Mod(12,5) is 2 because 12/5 is 2 (5*2=10) with reminder 2

View solution in original post

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Mod returns the reminder of 7 / 12 in this case is 7 because 7 divides 12 is 0 with 7 as reminder.

Mod(15,3) is 0 because 15/3 is 5 (5*3=15) with reminder 0

Mod(12,5) is 2 because 12/5 is 2 (5*2=10) with reminder 2

Not applicable

Then How about " mod( -4,3 ) returns 2 "  ?  Could you please explain