[uClibc]floating point and printf

Dallas Foley dfoley at techsol.ca
Wed Jun 18 19:03:09 UTC 2003


The decimal point is missing on output of printf.

printf("%f\n", (float)1.01);

produces:
1010000

Here's my general setup for the above.
ARM kernel 2.4.19 with NWFPE math emulation set
uClibc 0.9.19, here's part of .config
	UCLIBC_HAS_FLOATS=y
	HAS_FPU=y
	DO_C99_MATH=y
gcc 3.2.3


Also:
- uClibc 0.9.15 works fine
- uClibc 0.9.16 causes a seg fault
- gcc 2.95.3 and 3.2.1 (make no difference)






More information about the uClibc mailing list