Author Topic: Which function returns the remainder in a division operation?  (Read 273 times)

Offline Keaton

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Which function returns the remainder in a division operation?
« on: October 24, 2014, 10:04:31 AM »
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.
« Last Edit: December 09, 2017, 06:45:21 PM by Sofyene »



Offline Ajay

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Re: Division operation
« Reply #1 on: December 09, 2017, 06:46:16 PM »
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.


 

Sitemap 1 2 3 4 5 6 7 8 9