octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #44201] "whos" and gui display non-integer siz


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #44201] "whos" and gui display non-integer sizes inf/nan poorly
Date: Sat, 07 Feb 2015 18:16:49 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #3, bug #44201 (project octave):

1.  Re: Inf and NaN: I agree but I don't know enough C++ to know how to do
this (mixing sprintf(%g) and << perhaps).  I suggest we worry about whether
this would in principle go in (esp. viz #43096 changes), then worry about
fine-tuning this patch.

2.  Re:

> In the first example, sizes shouldn't be negative, so those
> should be displayed as unsigned numbers, not signed.

I don't think that is my point.  The code is converting double to int
(apparently signed int).  But my size.m is returning "inf" and "nan" which are
valid doubles, but apparently they convert to -BIGINT or something like that.

In case I wasn't clear: the "first example" is what currently happens.  The
second output is what it should be, after my patch.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44201>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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