| delorie.com/archives/browse.cgi | search |
| From: | "Igor Bujna" <igor DOT bujna AT maxi-tip DOT cz> |
| Organization: | Maxi-tip a.s. |
| To: | djgpp AT delorie DOT com |
| Date: | Wed, 18 Apr 2001 18:20:19 +0200 |
| MIME-Version: | 1.0 |
| Subject: | Atof |
| Message-ID: | <3ADDDAE3.29499.112013C@localhost> |
| X-Confirm-Reading-To: | "Igor Bujna" <igor DOT bujna AT maxi-tip DOT cz> |
| X-pmrqc: | 1 |
| X-mailer: | Pegasus Mail for Win32 (v3.12c) |
| Reply-To: | djgpp AT delorie DOT com |
Hi,
i have this problem with atof();
char *buf = "-21.345\0";
float f = 0;
f = atof ( buf );
printf("%f",f);
, then i have this "-21.344999".
What i must to do for it will be OK.
Thank you
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |