number-string

hjlab/hachan-lab1/number-string

No description
number-string
@/number-string
INnumber
number-string
IN
OUT
OUTstring
To use the node in your project you should have the hjlab/hachan-lab1 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#pragma XOD dirtieness disable

node {
    char str[16];
    CStringView view = CStringView(str);

    void evaluate(Context ctx) {
        auto num = getValue<input_IN>(ctx);
        formatNumber(num, 0, str);
        emitValue<output_OUT>(ctx, XString(&view));
    }
}