Re: Bug in ASC output

From: Alberto Fasso' <>
Date: Thu, 29 Oct 2009 14:33:35 -0700 (PDT)

That is not a bug!
This is a common misconception among non-fortran users, especially
those who have been exposed to other languages such as C.
6.6162-298 _IS_ a "regular number" in fortran, and you can find this
format used in many important programs (e.g. NJOY) and databases (ENDF/B
and other evaluated cross section files).
The question has already been answered on this list. See:
You will find there also a link to the fortran standard where this
format is described.


PS ...and if you wonder why fortran does not follow the de-facto
standard that all other languages have adopted, remember that fortran
was there much before any other languages. It is the others who have
not followed...

On Thu, 29 Oct 2009, wrote:

> I think there is a small bug in the code. I noticed that there is something
> wrong while printing data on the activity in ASC mode. I think problem
> probably occurs because of the program writes formatted output. I found the
> number 6.6162-298 (what is not a regular number) in the output instead of the
> number of scientific format 6.616E-298.
> I attach a file for which I noticed the problem.
> Best regards
> Adam

Alberto Fasso`
SLAC-RP, MS 48, 2575 Sand Hill Road, Menlo Park CA 94025
Phone: (1 650) 926 4762   Fax: (1 650) 926 3569
Received on Fri Oct 30 2009 - 09:40:36 CET

This archive was generated by hypermail 2.2.0 : Fri Oct 30 2009 - 09:40:41 CET