|
From: | John W. Eaton |
Subject: | [Octave-bug-tracker] [bug #53167] format long doesn't adjust precision to 7 digits when displaying single() values |
Date: | Fri, 16 Feb 2018 03:06:45 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #1, bug #53167 (project octave): Given the way the display code is structured in pr-output.cc, I think the best solution is to define separate display functions for double and float values. I see the following changset as a first step in that direction: http://hg.savannah.gnu.org/hgweb/octave/rev/39186eac5a05 My plan is to use templates to define separate display functions for real and float values without having to duplicate much code. Currently, float is transformed to double and the same function is used for both types. Once this change is made, it should be fairly simple to ensure that format long doesn't print more decimal digits than are actually available. _______________________________________________________ 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] |