|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #40396] toc precision |
Date: | Mon, 28 Oct 2013 13:26:23 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 |
URL: <http://savannah.gnu.org/bugs/?40396> Summary: toc precision Project: GNU Octave Submitted by: None Submitted on: Mon 28 Oct 2013 01:26:22 PM UTC Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: Inaccurate Result Status: None Assigned to: None Originator Name: Michael Leitner Originator Email: Open/Closed: Open Discussion Lock: Any Release: 3.6.2 Operating System: GNU/Linux _______________________________________________________ Details: The elapsed time as displayed by toc incorrectly reuses the formatting of the previous displayed number: ~:1> exp(9) ans = 8103.1 ~:2> tic;sleep(pi);toc Elapsed time is 3 seconds. or even ~:3> tic;sleep(4*pi);toc Elapsed time is 1e+01 seconds. Displaying a number with more digits after the decimal point helps: ~:4> exp(10) ans = 2.2026e+04 ~:5> tic;sleep(4*pi);toc Elapsed time is 12.57 seconds. Note that the number really has to be displayed: ~:8> exp(9) ans = 8103.1 ~:9> exp(10); ~:10> tic;sleep(4*pi);toc Elapsed time is 1e+01 seconds. Workaround: disp(toc) _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?40396> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |