Fixed exponent()

exponent wasn't giving the correct answer for denormal numbers. Also
fixed decimal places in ulps()