Err cmplx format

Extract this if as a function.