Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Arnoshka

    TCL/TK format force width

    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.
  2. Arnoshka

    TCL/TK format force width

    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...
  3. Arnoshka

    TCL/TK format force width

    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...
  4. Arnoshka

    TCL/TK format force width

    With %f you can only specify the minimum fildwidth and the fixed amount of digits. But %f can't force the number to a specific width.
  5. Arnoshka

    TCL/TK format force width

    %f can't handle that! set coordx 4321.123456 puts [format "%8f" $coordx] retuns 4321.123456 instead of 4321.123
  6. Arnoshka

    TCL/TK format force width

    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...
  7. Arnoshka

    TCL/TK format force width

    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...
  8. Arnoshka

    TCL/TK format force width

    But %f doesn't force the number to a specific field width. For my cause, the field width shall not exceed the length of eight characters.
  9. Arnoshka

    TCL/TK format force width

    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...
  10. Arnoshka

    TCL/TK format force width

    Ok I'll post the question on the TCL/TK Forum.
  11. Arnoshka

    TCL/TK format force width

    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
  12. Arnoshka

    TCL/TK format force width

    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...
  13. Arnoshka

    Missing width count for 'E' descriptor

    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
  14. Arnoshka

    Missing width count for 'E' descriptor

    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...
  15. Arnoshka

    Missing width count for 'E' descriptor

    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.
  16. Arnoshka

    Missing width count for 'E' descriptor

    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...
  17. Arnoshka

    Missing width count for 'E' descriptor

    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 ///...

Part and Inventory Search

Back
Top