next_numer is unsigned, no need for abs() call
use fabs() for floating point variables