note 11705 added to Floating point numbers

From: Date: Fri, 02 Mar 2001 23:22:27 +0000
Subject: note 11705 added to Floating point numbers
Groups: php.notes 
Request: Send a blank email to php-notes+get-11803@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. http://www.php.net/manual/en/language.types.double.php

« previous php.notes (#11803) next »