May 02 2014 | 8:00 am

i type this in to codebox:

round(num)
{
b = abs(num);
a = ceil(b - 1);
a = b - a;

if(a >= .5){
b = ceil(b);
}
else{
b = floor(b);
}

if(num < 0){
num = -b;
}
else{
num = b;
}

return num;
}

out1 = round(in1/in2)*in2;

i get this in "code" tab:

round(num) {
b = abs(b);
a = ceil(b - 1);
a_1 = b - a;
if(a_1 >= 0.5) {
b = ceil(b);
}
else {
b = floor(b);
}
if(b < 0) {
b = -b;
}
return b;
}

expr_2 = round(in1 / in2) * in2;
out1 = expr_2;

notice num is not even passed into the function.

whyyyyyy? :(
btw,