[Dev-C++] RES: Reading and printing long double values
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: André M. B. <and...@su...> - 2008-04-27 21:57:07
|
Hi, Checking a little bit more, I found message #3 in which Ioannis Vranos said: http://www.velocityreviews.com/forums/t289111-printf-and-long-double.html Writing the same code in Borland, it worked fine! Thanks anyway! Andre -----Mensagem original----- De: Iván Sánchez Luque [mailto:iva...@gm...] Enviada em: domingo, 27 de abril de 2008 18:02 Para: André Macário Barros Cc: Lista do Dev-C++ Assunto: Re: [Dev-C++] Reading and printing long double values http://www.cplusplus.com/reference/clibrary/cstdio/printf.html André Macário Barros wrote: > Dear users, > > I´m having some problems trying to read/print > a long double value in C. > > Based on a documentation I´ve found, one of the > attempts was: > > ... > long double var=3.0; > ... > printf("printing a long double value-->%5.0Lg\n", var); > ... > > I´ve already tested: %LE and %LF and none of these > options worked. > > Does anybody know how to read and print? > Thanks! > > Andre > > No virus found in this outgoing message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 269.23.5/1400 - Release Date: 27/4/2008 > 09:39 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao ne > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.5/1400 - Release Date: 27/4/2008 09:39 No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.5/1400 - Release Date: 27/4/2008 09:39 |