mod2

 

Description

Divides x by y and returns the remainder.

The arithmetic is same with Excel, but not same with c/c++.

Syntax

int mod2( int x, int y )

Parameters

x
[input] dividend
y
[input] divisor

Return

remainder of division of x by y

Examples

EX1

void mod2_ex1()
{
        out_int("", mod2(-72, 256)); // 184
}

Remark

See Also

mod, rmod

Header to Include

origin.h

Reference