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

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

[Octave-bug-tracker] [bug #56941] format rat or rats display 0 rather th


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56941] format rat or rats display 0 rather than rational approximation for small numbers
Date: Mon, 23 Sep 2019 17:51:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36

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

It's pretty easy to show by example that Matlab has different rules for
'format rat' output vs the 'rats' function.

In Matlab (2019b):


>> x = pi * 1e-9;
>> format rat;
>> x

x =

       1/318309886

>> rats(x)

ans = '       *      '



It may be helpful to discuss 'format rat' and 'rats' separately, or at least
be careful in distinguishing the behavior of each.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56941>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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