Floating point problem on FreeBSD

From: Date: Sun, 11 Jun 2000 16:13:04 +0000
Subject: Floating point problem on FreeBSD
Groups: php.dev 
Request: Send a blank email to php-dev+get-21005@lists.php.net to get a copy of this message
Hi, The following code causes a SIGFPE on FreeBSD: #include <stdio.h> main() { double d; long i; d = 4000000000.0; i = (long) d; printf ("%ld\n", i); } It seems to work on Linux and I suppose on other UNIX systems. Any idea what the best way is to handle it in PHP? Andi

« previous php.dev (#21005) next »