ok i found the solution. After all of the operations from above the output has to be like:
return[format "% 8s% 8s% 8s" $coord1 $coord2 $coord3]
Thank you again for your help.
Hi,
thats true which language does...
By the way, I just noticed, there is still one thing knocking me out.
Currently I am programming an interface for a analysis program. In my case I have to return the complete string with the correct format.
I used your code just the way you wrote it.
and...
WOW
I guess this will suit my needs. surprising that TCL doesn't come with formating comands to solve this problem.
As far as I know fortran does.
Still big numbers are not transformt into a short exponential writing.
But for most cases it'll prevent errors to occure due to very small numerical...
Hi,
thank you for taking some time to respond.
The specific width is what I'm having trouble with.
like in my first note above the numbers are suposed to be with a maximum length of 8 characters
any number | formated number with max. eight characters
--------------------------
0.123456...
Hi,
thank you for taking some time to respond.
The specific width is what I'm having trouble with.
like in my first note above the numbers are suposed to be with a maximum length of 8 characters
any number | formated number with max. eight characters
--------------------------
0.123456...
Hello,
I'm having big trouble finding a formating that fits my needs.
I have to create lists with numbers of maximum 8 characters.
Currently I'm using the "g" formatt,
return [format "%8g%8g%8g" $coordx $coordy $coordz]
but my variables "coordx", "coordy" und "coordz" are often close to zero...
Oh I didn't notice I wrote in the FORTRAN forum.
And thank you for the advice. but the format still does not force the number to the field width.
set coordx 4321.123456
puts [format "%.5f" $coordx]
returns
4321.123456
instead of
4321.123
Hello,
I'm having big trouble finding a formating that fits my needs.
I have to create lists with numbers of maximum 8 characters.
Currently I'm using the "g" formatt,
return [format "%8g%8g%8g" $coordx $coordy $coordz]
but my variables "coordx", "coordy" und "coordz" are often close to zero...
Hello "mikrom",
thank you once again for your help. My program code is still having some bugs, but the compiler doesn't give any further complains.
Sillverfrost doesn't not automatically recognize Fortran77 code.
After forcing to only accept fortran77, I'm all satisfied.
kind regards
Arno
I'm using "Silverfrost Plato". A professor recommended it to me.
Today i'll try open watcom and if that is not workng for me I'll try to arrange a g77 or gfortran or g95 compiler for me.
May I ask one more question? Where are these lines of code to be put into?
$ g95 formats.for -o formats...
Thank You very much.
I was trying to find the cause for the error in the code and not in the build of the compiler.
I'll try to arrange on of those fortran77 compilers.
I hope this is enough if its not I could post the entire first subprogram with about 12000 rows.
570 format(1h1//, 45h edv-programmsystem der forschungsvereinigung,
a32h verbrennungskraftmaschinen e.v.,
a ///////,21x,44h ***** ****** ******* ***** * *)
571...
Hello
I'm having big trouble debugging a program in Fortran77.
The compiler shows two error messages in row 5709:
error 270 - Missing width count for 'E' descriptor
error 274 - Unknown edit descriptor 'm', or missing comma
with the following program code:
Row 5704
577 format(1h ///...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.