Emulate fortran I/O exponential mode in C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
In Fortran, when I can represent an number in exponent format
(d.ddEdd) the numbers before the decimal point can be deleted for
accomodate to the precision. For example, if I want to print
-0.555E+01 (normalized between 0, 1 is the Fortran representation) in
9 characters with 3 decimal places, Fortran prints the number as
-.555E+01. Could this behaviour emulated with gcc. I surfed the web
and I think that in standard C can be done but, is possible with gcc?
Perhaps any GNU extension?

Thanks

-- 
*****************************************
José Luis García Pallero
jgpallero@xxxxxxxxx
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux