cancel
Showing results for 
Search instead for 
Did you mean: 

I need to develop application using round function. The current math.h doesn't seem to support this function. Can anyone help

Ivin Holmes
Associate II
 
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
PMath.4
Senior III
int round(double number)
{
    return (number >= 0) ? (int)(number + 0.5) : (int)(number - 0.5);
}

Thanks