Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Output Format Rounding

dixon01
Beginner
447 Views

Hi,

I've recently upgraded my project from vs2010 with Visual Fortran Composer XE 2011 to vs2012 with Visual Fortran Composer XE 2013. I use the following format statement to output some data (example data: -4.48e-054):

FORMAT(2X,F6.2)

When used previously it would round very small numbers to 0.00. Now when I run the same program it outputs -0.00. 

Any idea if there's a project setting or something I need to change so that the sign is discarded? I may well have inadvertently changed a setting during the upgrade.

Thanks for any help.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
447 Views

Your very small numbers are negative, so the standard requires that the sign be there and we weren't doing it correctly - we fixed a bug.

0 Kudos
Reply