Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General

General

Is there any way to write a number in left justified form to a file ? as by default, FORTRAN writes out number in right justified form.

    • FAQFAQ
      Participant

      There is no left justify FORTRAN format however we can achieve it split it up like this: *vlen,8000 *VWRITE,ns_temp_T(1,1), ns_temp_T(1,2) (1(F5.0,T5,’ ‘),/,1(6X,F12.5)) *VWRITE,ns_temp_T(8001,1), ns_temp_T(8001,2) (1(F6.0,T6,’ ‘),/,1(6X,F12.5)) Please find attached sample files.

      Attachments:
      1. 2045862.zip