G format question
What is the correct output for the following:
d
a = 0.0
write(*,'(G15.0)') a
It seems that there may be an ambiguity in the standard when Gw.d is specified
with d=0. I am looking at draft F2003 standard. I don't think it is much
different from F95.
Several compilers give some form of error on this, but it seems sensible to
output 0.E+00 or 0. like Fw.d does.
Regards,
Jerry
.
Relevant Pages
- Re: An ambiguous case of setup_call_cleanup/3
... Okay, hearing from a specifier then, do you see ... the standard could be other than it is, ... in "concurrent" Prolog there may be ambiguity ... If you meant by current standard this one tiny draft concerning ... (comp.lang.prolog) - Re: Sequence points
... not in the C standard itself. ... text and informative text, it's still a defect, but in principle the ... there is an ambiguity in the normative text, ... used to resolve that ambiguity - and that there is therefore no need ... (comp.std.c) - Re: HardBound and SoftBound (was "The State of Software")
... resulting restrictions are sometimes a breach of the C standard, ... almost always straddle an ambiguity, and break a lot of important ... then toss it in the "safe" pile. ... up the constraints of an arbitrary program, ... (comp.arch) - Re: Ancient history
... That area was the ambiguity. ... > viewpoints on whether the intent of the standard was to allow it ... array declarator for the array. ... F66 I'm not so sure on. ... (comp.lang.fortran) - Re: M/MOD
... in each case we see someone holding out ... floored division or something else. ... Standard Forth wants to remain fractured? ... A standard should not promote ambiguity. ... (comp.lang.forth) |
|