#pragma XOD dirtieness disable
node {
void evaluate(Context ctx) {
auto x = getValue<input_IN>(ctx);
emitValue<output_OUT>(ctx, round(x));
}
}| IN | OUT |
| 0 | 0 |
| 1 | 1 |
| -1 | -1 |
| 1.4 | 1 |
| 1.5 | 2 |
| -1.5 | -2 |
| 3.496 | 3 |
| -3.496 | -3 |
| NaN | NaN |
| Inf | Inf |
| -Inf | -Inf |