Re: pintf format specifier for scieintifc number format?



"Harish" <Harish@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1EA8AF9C-F76A-43FB-A4C8-9D1D346BA1AB@xxxxxxxxxxxxx
What is the printf format specifier for writing
a number in this format "-6.94470825E+001" ?

%E

My particular concern is how to specify the number
of digits after the "+" symbol (exponent part)?

printf doesn't provide any way to control this.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Newbie: Stream Redirection in MFC Apps
    ... You can create a function called "printf" that does whatever you want. ... "redirect" it. ... You might want to check out my Logging Listbox control. ... >I'm attempting to develop an application using MFC. ...
    (microsoft.public.vc.mfc)
  • Re: fgetc - end of line - where is 0xD?
    ... int main ... Quitting.\n", stderr); ... printf(" (a control character)\n"); ...
    (comp.lang.c)
  • Re: regex to clean path
    ... printf is so rarely needed in perl. ... control the printing. ... always build strings and return them. ...
    (comp.lang.perl.misc)
  • Re: zero placeholder exponential sprintf?
    ... but I want '0.112345e+03', i.e., a leading zero placeholder. ... Hmmm, now just need the '+0' part in the exponent and control ...
    (comp.lang.ruby)
  • Re: Dll in ActiveX Control
    ... What does HTTP server have to do with anything? ... You lost me here. ... With sufficient thrust, pigs fly just fine. ...
    (microsoft.public.vc.atl)