From cyril.humbert at univ-mlv.fr  Wed Jun 15 16:12:58 2005
From: cyril.humbert at univ-mlv.fr (cyril.humbert@univ-mlv.fr)
Date: Wed, 15 Jun 2005 16:12:58 +0200 (CEST)
Subject: [Rd] extra spaces before imag part when printing complex numbers
	(PR#7942)
Message-ID: <20050615141258.D8890A1CF@slim.kubism.ku.dk>

Hello,

When printing sequence of complex numbers, extra spaces
are sometimes printed between real and imaginary part of
each number.

For example:
## R Version 2.1.1 beta (2005-06-13) [Debian unstable, i386]
## and R Version 2.1.0               [Debian unstable, i386]

> print(c(1+1i, 10+1i, 100+1i)) # Ok
[1]   1+1i  10+1i 100+1i 

> print(c(1+1i, 1-10i, 1+100i))
[1] 1+  1i 1- 10i 1+100i
      ^^     ^
  (extra spaces)



The numbers of inserted spaces depends on the imaginary
part which has the largest number of figures:

> print(c(1+1i, 1+12i))
[1] 1+ 1i 1+12i
      ^

> print(c(1+1i, 1+123i)) 
[1] 1+  1i 1+123i
      ^^

> print(c(1+1i, 1+1234i)) 
[1] 1+   1i 1+1234i
      ^^^

Regards,

-- 
Cyril



[Rd] extra spaces before imag part when printing complex numbers (PR#7942)
cyril.humbert@univ-mlv.fr