[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: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #56941] format rat or rats display 0 rather than rational approximation for small numbers |
Date: |
Mon, 23 Sep 2019 23:33:11 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #5, bug #56941 (project octave):
It seems that rat.m and the C++ code in oct-string.cc do not produce the same
result. This is a problem. In terms of engineering principles, we really
should only have one code path for this and then re-use it. In any case,
rat.m seems to get the same answer as Matlab.
[n,d] = rat ([-pi, 0, pi] * 1e-6)
n =
-1 0 1
d =
318310 1 318310
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56941>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/