Fixed calculation of real uncertainty when Imaginary is equal to zero