Float problen running i386 inary on amd64

Pete French petefrench at ticketswitch.com
Fri Nov 2 15:04:49 PDT 2007

Hi, I have a very simple program:

	main(int argc, char *argv[])
        	if(atof("3.2") == atof("3.200"))
                	puts("They are equal");
                	puts("They are NOT equal!");
        	return 0;

This works as expected on both i386 and amd64. But if I take the compiled
binary from the i386 system and run it on the amd64 system thenit says they
are not equal! I thought this was a library problem, but it even happens if
I compile to a static binary, which would preseumably mean the same code is
running on both systems.

I am using 6.3-PRERELEASE here


More information about the freebsd-stable mailing list