octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display of scalar numeric values onscreen


From: Olaf Till
Subject: Re: display of scalar numeric values onscreen
Date: Sat, 21 Sep 2019 14:54:01 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Fri, Sep 20, 2019 at 11:26:15PM +0100, Michael D Godfrey wrote:
> Rik,
> 
> I vote for just one space as you recommend.
> 
> On 9/20/19 9:52 PM, Rik wrote:
> > My thought is that leading
> > spaces don't make sense and should be trimmed to just one space after the
> > '=' character.
> 

The extra space seems to be that of a potential 'minus' sign:

octave:1> 1
ans =  1
octave:2> -1
ans = -1
octave:3> disp (1)
 1
octave:4> disp (-1)
-1

I don't know if that is intentional. But I'd rather leave it so, so
that a number and its negative are printed aligned.

'0' makes an exception, though:

octave:5> 0
ans = 0
octave:6> -0
ans = -0

Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]