Updated `printmagnitudeofnumber` to handle most negative number.