After:

// Computing the absolute value
if( value < 0 )
{
   value *= -1;
}