Webastor - Programming Tips and Tricks

Programming language => Sql => Topic started by: Keaton on October 24, 2014, 10:04:31 AM

Title: Which function returns the remainder in a division operation?
Post by: Keaton 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.
Title: Re: Division operation
Post by: Ajay 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.