#pragma XOD dirtieness disable
node {
void evaluate(Context ctx) {
Number in1 = getValue<input_IN1>(ctx);
Number in2 = getValue<input_IN2>(ctx);
Number out = fmod(in1, in2);
emitValue<output_OUT>(ctx, out);
}
}| IN1 | IN2 | OUT |
| 13 | 10 | 3 |
| 4 | 10 | 4 |
| -6 | 10 | -6 |
| -26 | 10 | -6 |
| -26 | -10 | -6 |
| 26 | -10 | 6 |
| 735.25 | 2.33 | 1.29~ |
| NaN | 10 | NaN |
| 26 | NaN | NaN |
| Inf | Inf | NaN |
| -Inf | Inf | NaN |
| Inf | -Inf | NaN |