MCPcopy Create free account
hub / github.com/Norbyte/ositools / IsDivisible

Function IsDivisible

OsiInterface/Functions/MathFunctions.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 bool IsDivisible(OsiArgumentDesc & args)
119 {
120 auto n = args[0].Int32;
121 auto d = args[1].Int32;
122
123 if (d != 0 && n%d == 0) {
124 args[2].Int32 = 1;
125 } else {
126 args[2].Int32 = 0;
127 }
128
129 return true;
130 }
131 }
132
133#define MATH_QUERY1(funcName) { \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected