【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.16.1.9 mod
Contents
Description
Divides x by y and returns the remainder.
The arithmetic is same with c/c++, but not same with Excel.
Syntax
long mod( long x, long y )
Parameters
- x
- [input] dividend
- y
- [input] divisor
Return
remainder of division of x by y
Examples
EX1
void mod_ex1() { int m = 36, n = 10; long nmod = mod(m, n); printf("mod(%d, %d) = %d\n", m, n, nmod); }
Remark
See Also
Header to Include
origin.h