[Bug 659] strtold() returns meaningless number on Asus WL-500gP router w/OpenWRT
bugzilla at busybox.net
bugzilla at busybox.net
Sun Mar 14 18:14:01 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=659
Leonid <lly.dev at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--- Comment #2 from Leonid <lly.dev at gmail.com> 2010-03-14 18:13:59 UTC ---
I also can confirm erroneous strtold() output on MIPS32 LE platform. Your
sample produces output like:
$ ./strtold
Lg=2.122e-314
g =2
f =0.000000
toolchain used: gcc is 4.2.4, uClibc 0.9.30.1, binutils 2.19.1
If I changes example like:
#include <stdlib.h>
#include <stdio.h>
int main(void) {
long double ld = 0;
float f = 0;
ld = strtold("2.0000", NULL);
f = strtof("2.0000", NULL);
printf("Lg=%Lg\n", ld);
printf("g =%g\n", strtod("2.0000", NULL));
printf("f =%f\n", f);
return 0;
}
output will be:
$ ./strtold
Lg=7.16427e+08
g =2
f =716427264.000000
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the uClibc-cvs
mailing list