Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
raghvendrasingh
Creator II
Creator II

Fuctionality of mod()

Hi All,


1.what is process of mod() function in qlikview,if we give the mod(-5,3) then it returns 1,but in general mathematics it gives -2,


2.why mod(3,-2) gives NULL



please anyone give the clarification about mod() function.


Regards,

Raghvendra

3 Replies
Not applicable

QlikView mod function works only with integers.

To get the right output of ur examples use fmod function.

Like fmod(-5,3) and fmod(3,-2)

Hope this will give u required output.

vipin_mishra479
Creator II
Creator II

Hi Raghvendra,

mod(x1 , x2)

Mathematical modula function. Both parameters must have integer values. x2 must be greater than 0. The result is the non-negative remainder of an integer division.

regards,

vipin

raghvendrasingh
Creator II
Creator II
Author

hi fiends,

i want the programmig logic of mod() function.not the features.how it internally works..