/* This API performs roundoff on given value. 
This API performs the roundoff on given value. */
static int8_t roundoff(int32_t value)
/* This API performs roundoff on given value. 
This API performs the roundoff on given value. */
static int8_t roundoff(int32_t value)
{
    int8_t ret = 0;
    if (value < 0)
        ret = (int8_t)(((value) - 50) / 100);
    else
        ret = (int8_t)(((value) + 50) / 100);
    return ret;
}