Date: Fri, 02 Nov 2007 22:04:48 +0000 From: Pete French <petefrench@ticketswitch.com> To: stable@freebsd.org Subject: Float problen running i386 inary on amd64 Message-ID: <E1Io4dE-0001eQ-8X@dilbert.ticketswitch.com>
next in thread | raw e-mail | index | archive | help
Hi, I have a very simple program:
int
main(int argc, char *argv[])
{
if(atof("3.2") == atof("3.200"))
puts("They are equal");
else
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
-pete.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Io4dE-0001eQ-8X>
