|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #53167] format long doesn't adjust precision to 7 digits when displaying single() values |
Date: | Thu, 15 Feb 2018 20:09:08 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
URL: <http://savannah.gnu.org/bugs/?53167> Summary: format long doesn't adjust precision to 7 digits when displaying single() values Project: GNU Octave Submitted by: rik5 Submitted on: Thu 15 Feb 2018 05:09:07 PM PST Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: According to documentation, Matlab only displays 7 digits after the decimal point when showing class single values. This is useful because it reinforces to the user that digits beyond the 7th are not meaningful. In Octave, a long format always displays 15 digits after the decimal point. Octave: octave:1> format long octave:2> single (pi) ans = 3.14159274101257 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53167> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |