<< quotient Arithmetic the_gcd >>

Scilab Scholar module for schools >> Arithmetic > remainder

remainder

calculates the remainder from a division of two numbers

Calling sequence

r = remainder(m,n)

Arguments

m

integer

n

non zero integer

r

integer

Description

remainder(m,n) returns the remainder from the Euclidean division of m by n.

Examples

remainder(25,3)
remainder(-25,3)

See Also

<< quotient Arithmetic the_gcd >>