None
int32 out
int32 s
int32 Sel
int s, l, pSel;
/*
* http://community.axoloti.com/t/math-help-needed/5028/6
*/
if (param_Sel != pSel) {
pSel = param_Sel;
s = 0;
l = 1;
for (int i = 1; i <= param_Sel; i++) {
if (s < l) {
s++;
} else {
l++;
s = 1;
}
}
}
outlet_l = l;
outlet_s = s;