MathMod

2019/07/17 19:00
178

double MathMod( double value, double value2)

この関数は2数の除算の余り (小数)を返す。

MathMod関数はx / yの余り fを計算する。これは x = i * y + f となり、ここでiは整数、fはxと同じ符号を持ち、fの絶対値はyの絶対値よりも小さい。
Parameters:
value - 割られる数
value2 - 割る数
Sample:
double x=-10.0,y=3.0,z;
z=MathMod(x,y);
Print("The remainder of “,x,” / “,y,” is ",z);
//Output: The remainder of -10 / 3 is -1

コメント