note 11705 rejected and deleted from Floating point numbers by torben

From: Date: Fri, 02 Mar 2001 23:41:06 +0000
Subject: note 11705 rejected and deleted from Floating point numbers by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-11804@lists.php.net to get a copy of this message
I'm trying to pass arrays of doubles from C to PHP over a TCP/IP connection and am not having much luck. On the C side I do write(s,array,numElems*sizeof(double)) but PHP doesn't seem to have a way of treating the 64-bit IEEE formatted double as a double. Casting it as a double seems to perform the same thing as the atof function in C, ie it converts a string of the from "[+-]xxx.xxxx" to a double. Any ideas? Sorry if I've overlooked something obvious in the manual.

« previous php.notes (#11804) next »