Which function returns the remainder in a division operation?

Started by Dainton, October 24, 2014, 10:04:31 AM

Previous topic - Next topic

Keaton

Hello, I would like to ask you a question, which function returns the remainder in a division operation? Please answer the question on this topic.

Ajay

b = mod(a,m) returns the remainder after division of a by m, where a is the dividend and m is the divisor. This function is often called the modulo operation, which can be expressed as b = a - m.*floor(a./m). The mod function follows the convention that mod(a,0) returns a.