Hey Steve,
Since, floor() seems to be working, one could create a round() function
something like this.
int round(float x) {
if (x >= 0) {
if floor(x+0.5)>floor(x)
return floor(x)+1;
else
return floor(x);
}
else {
if floor(x+0.5)==floor(x)
return floor(x)-1;
else
return floor(x);
}
}
I hope this helps.
Regards,
Vikas