note 110450 added to language.types.float
| From: | pcunha at gmail dot com | Date: | Tue, 23 Oct 2012 14:12:20 +0000 |
| Subject: | note 110450 added to language.types.float | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191502@lists.php.net to get a copy of this message | ||
To simply convert 32 bits float from hex to float:
function hexfloat ($hex){
return (unpack("f", pack('H*',$hex))[1]);
}
This may be useful for arduino interface with php.
----
Server IP: 69.147.83.199
Probable Submitter: 189.80.111.13
----
Manual Page -- http://www.php.net/manual/en/language.types.float.php
Edit -- https://master.php.net/note/edit/110450
Del: integrated -- https://master.php.net/note/delete/110450/integrated
Del: useless -- https://master.php.net/note/delete/110450/useless
Del: bad code -- https://master.php.net/note/delete/110450/bad+code
Del: spam -- https://master.php.net/note/delete/110450/spam
Del: non-english -- https://master.php.net/note/delete/110450/non-english
Del: in docs -- https://master.php.net/note/delete/110450/in+docs
Del: other reasons-- https://master.php.net/note/delete/110450
Reject -- https://master.php.net/note/reject/110450
Search -- https://master.php.net/manage/user-notes.php