[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 16:01:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
URL:
<https://savannah.gnu.org/bugs/?56941>
Summary: format rat or rats display 0 rather than rational
approximation for small numbers
Project: GNU Octave
Submitted by: rik5
Submitted on: Mon 23 Sep 2019 01:01:33 PM PDT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
For small numbers, the 'rat' format prints '0' rather than either a rational
approximation or simply an indication that it cannot display the correct
value.
As an example,
octave:43> format rat
octave:44> x = pi*1e-9
x = 0
However, Matlab displays
1/318309886
which indeed is a reasonable approximation.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56941>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56941] format rat or rats display 0 rather than rational approximation for small numbers,
Rik <=