Difference between modulus (%) and floor division(//) in NumPy?
Assume a= 10, b = 6
a%b will give you the remainder, that is 4
a//b will give you the quotient, that is 1
Recently, I read a book on Numpy which mentions different types of ufuncs, where I was encountered with two different ufuncs, namely 'modulus', denoted by % symbol and 'floor division' //. Can someone explain the difference between them and why two operators are provided to do the the same thing (display reminder of division, according to me)? Please correct, if I am wrong.