Quantcast
Channel: Intel® Fortran Composer XE
Viewing all articles
Browse latest Browse all 1424

Looking for an Edit Descriptor Solution to a -0 indication

$
0
0

In a recent migration to X64, I noted a difference in display of small negative numbers.  These are numbers small enough that they are 0 to the number of figures requested.  In Win32, they used to appear as 0 suitably formatted as regards difits requested.  In X64, they appear as -0.  It seems totally trivial, however, it makes upward compatibility QA checks awkward because one gets a lot of "hits" in a text comparison of output which don't signify any real difference in calculations.

Of course, one can put in logic to set such small negative numbers to 0.  But I suspect there is an edit descriptor solution.  Does anyone know one?  I am looking for a way of getting a Fortran program to kill the minus sign unless there is non-zero content to display to the number of digits requested.  As noted, this appears to me to have been the default in Win32.


Viewing all articles
Browse latest Browse all 1424

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>