|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-24 21:17 UTC] esri at godseyfamily dot com
Description: ------------ Would simply like to input a hex value and get the float of it back. The settype of course does not work, or any kind of casting. A function that parses the binary string introduces a huge amount of overhead when I do 1024 of these values in a row. I would think that any programming language would have this basic capability. I'm getting raw data, and a data type that it needs to be converted to. I checked and didn't see this requested, though I'm sure it has been. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 10:00:01 2025 UTC |
$num = 0x3F800000; printf("%f",$num); I would expect a return value of: 1.00000 What I am getting is the integer value: 1065353216.000000