{"id":179446,"date":"2023-08-25T12:16:27","date_gmt":"2023-08-25T12:16:27","guid":{"rendered":"\/knowledge\/forums\/topic\/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\/"},"modified":"2023-08-25T12:16:27","modified_gmt":"2023-08-25T12:16:27","slug":"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","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/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\/","title":{"rendered":"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."},"content":{"rendered":"<p>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,&#8217; &#8216;),\/,1(6X,F12.5))   *VWRITE,ns_temp_T(8001,1), ns_temp_T(8001,2) (1(F6.0,T6,&#8217; &#8216;),\/,1(6X,F12.5))  Please find attached sample files. <\/p>\n<p>Attachments:<br \/>\n1. <a href=https:\/\/ansys13.ansys.com\/KnowledgeArticles\/Phase-3\/2045862\/2045862.zip>2045862.zip<\/a><\/p>\n","protected":false},"template":"","class_list":["post-179446","topic","type-topic","status-publish","hentry","topic-tag-4431","topic-tag-apdl","topic-tag-general","topic-tag-macros-scripting-upf","topic-tag-mechanical-apdl","topic-tag-structural-mechanics"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"siebel_km_number":["2045862"],"_bbp_last_active_time":["8\/25\/2023 20:20"],"_bbp_forum_id":["27789"],"_bbp_author_ip":["23.56.168.180"],"application_name":["Mechanical APDL"],"family":["Structural Mechanics"],"km_published_date":["2016-12-22T15:54:00.000Z"],"product_version":["17"],"_btv_view_count":["617"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/179446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/179446\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=179446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}