octave-maintainers
[Top][All Lists]
Advanced

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

Re: format short output with small numbers (bug #56936)


From: John W. Eaton
Subject: Re: format short output with small numbers (bug #56936)
Date: Tue, 24 Sep 2019 13:29:14 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 9/24/19 1:22 PM, John W. Eaton wrote:

I realize I may have missed the point of your question.  If the behavior changed, then I don't know that it was intentional.  Is the situation now that there is no point where the switch happens?

There is definitely something strange going on. It seems to be dependent on whether an exact zero is present in the array:

octave:7> pi* [1e7;0;1e-7]
ans =

   31415926.53590
                0
          0.00000

octave:8> pi* [1e7;1e-7]
ans =

   3.1416e+07
   3.1416e-07

Maybe that's due to the use of logarithms to calculate magnitude ranges?

jwe



reply via email to

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