Any suggestion for code to format REAL in a narrow
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 18 articles for 0.054 sec
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: Colin Watters
Date: Feb 16, 2007 12:54

... months ago. I never got any suggestions to beat what I...currently do: see attached. My code is desperately inefficient, mostly Fortran...padding implicit none integer ncol real*4 rr character*40 ccc...a character string containing a formatted real number. ! e.g. '10...1e-30 goto 10 100 format(g14.7,2x,a11,2x...
Show full article (27.82Kb) · Show article thread
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: Louis Krupp
Date: Feb 16, 2007 04:35

... wrote: Ok then here's an off the wall idea. Given that your output is intended to be human-readable, it doesn't actually have to be computer-readable. You could design a format that is understandable to humans, is very compact, and would require minimal head scratching. <snip> Negative numbers would still require a digit to be sacrificed. Or you could use colour to ...
Show full article (0.55Kb)
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: Colin Watters
Date: Feb 15, 2007 14:49

... output is intended to be human-readable, it doesn't actually have to be computer-readable. You could design a format that is understandable to humans, is very compact, and would require minimal head scratching. For example, display all values ... Email: my qname at domain Domain: qomputing dot demon dot co dot uk P.S. See also my earlier post that went missing... real working code.
Show full article (1.00Kb)
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: dpb
Date: Feb 15, 2007 09:40

... one might be a differential air pressure drop across some "narrow" hole (in the range of 10 Pa), the ... display, it would be expected that the values in any given column are of nearly the same magnitude for ... case, it would seem reasonable to find a specific format that covers the range of values for each transducer output and stick with that format for that column. I've worked on quite a ...
Show full article (1.62Kb)
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: Terence
Date: Feb 15, 2007 05:13

... width, how about 4/5 digits of otional sign and significance with a point in there somewhere, totalling 6 characters and the exponent under the mantissa in the line below? My own variabile width real-to-text routine expects no output exponent (human numbers), but writes the number to a work string as 20 characters and then takes the left-most (width) significant digits for the column ...
Show full article (0.71Kb)
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: nnc
Date: Feb 15, 2007 01:21

... values from different sensors. Each row has one signal, one might be a voltage, one a current (as low as mA or uA), one might be a differential air pressure drop across some "narrow" hole (in the range of 10 Pa), the next might be a peek pressure inside a combustion camber - quite some magnitudes larger). Horizontally, different samples (taken at different times) are displayed. I want to...
Show full article (1.92Kb)
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: dpb
Date: Feb 14, 2007 12:21

... I'd like to output a REAL*4 value into a column of ...the Bettis Labs-written nuclear design codes of ages gone by, there was...properly specified I,E, or F formatted values, but I gather only output...is about the most concise generic format possible once one selects a field width. Switching around between formats from entry to entry makes ... most if not all the codes have been ported to desktops, ...
Show full article (1.96Kb)
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: Ron Shepard
Date: Feb 14, 2007 09:53

... width field, yet it has never appeared in any fortran standard nor in any vendor extension that I know of. I think you have to do ... need to consider. *) switch between f and e formats as appropriate. *) for e formats, reduce the exponent field to one digit when possible. *) Replace the "E... is a valid floating point constant in formatted i/o, so you might as well ...
Show full article (1.68Kb)
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: David Flower
Date: Feb 14, 2007 04:42

On Feb 14, 10:46�am, "n...@eta.chalmers.se" <n...@eta.chalmers.se> wrote: Dear reader, I'd be most grateful if somebody could send me suggestions for method/ code/... to help solving my problem. In writing F.77 (eg. VAX-Fortran), I'd like to output a REAL*4 value into a column of 6 characters width. I also
Show full article (0.33Kb)
Re: Any suggestion for code to format REAL in a narrow column?     

Group: comp.lang.fortran · Group Profile · Search for Any suggestion for code to format REAL in a narrow in comp.lang.fortran
Author: David Flower
Date: Feb 16, 2007 02:27

On Feb 15, 9:21�am, "n...@eta.chalmers.se" <n...@eta.chalmers.se> wrote: Thanks all that helped so far! As no "ready-made solution" to this problem that must have been there for all days of computing, evoked, I'll have to write it now. It will take some time, but I'll (eventually?) post my results for mutual use. As replacing the E / E- with +/- is a nice idea, I'll surely ...
Show full article (0.74Kb)
1 · 2 · next