I would like to output real variables in a formatted file. If the variables are non-zero, format statements are used. But if variables are zero, then only blank spaces are outputted, similar to what Iw.0 does. Is it possible to do this in the format statements? Thank you.
相关问题
- CABS(x) function for complex(8)
- Upper bound of random number generator
- Batch - Set variables in for loop
- Finding number of lines of a data file using comma
- JavaScript, confusing syntax when declaring a vari
相关文章
- Does gfortran take advantage of DO CONCURRENT?
- Loss of variables switching orientations
- What is the limit in size of a Php variable when s
- Makefile and use of $$
- Fortran 90 - “Segmentation fault - invalid memory
- Splitting an array into the variables in php
- javascript setInterval() and Variable Scope
- Initialization in polymorphism of variables
No, not with a format statement, but this is reasonably easy to do by writing the values to a string and processing. Below is a demo. Probably better to put into a subroutine.