note 97758 added to function.dechex
| From: | Rosberg-rosberglinhares at gmail dot com | Date: | Thu, 06 May 2010 15:52:48 +0000 |
| Subject: | note 97758 added to function.dechex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169020@lists.php.net to get a copy of this message | ||
Here is a BC Math version:
function bcdechex($dec) {
static $dechex = array("0", "1", "2", "3",
"4", "5", "6", "7", "8", "9",
"A", "B", "C", "D", "E", "F");
$hex = "";
do {
$hex = $dechex[(int)bcmod($dec, 16)] . $hex;
$dec = bcdiv($dec, 16);
} while (bccomp($dec, 1) >= 0); // $dec >= 1
return $hex;
}
----
Server IP: 69.147.83.197
Probable Submitter: 189.71.127.71
----
Manual Page -- http://www.php.net/manual/en/function.dechex.php
Edit -- https://master.php.net/note/edit/97758
Del: integrated -- https://master.php.net/note/delete/97758/integrated
Del: useless -- https://master.php.net/note/delete/97758/useless
Del: bad code -- https://master.php.net/note/delete/97758/bad+code
Del: spam -- https://master.php.net/note/delete/97758/spam
Del: non-english -- https://master.php.net/note/delete/97758/non-english
Del: in docs -- https://master.php.net/note/delete/97758/in+docs
Del: other reasons-- https://master.php.net/note/delete/97758
Reject -- https://master.php.net/note/reject/97758
Search -- https://master.php.net/manage/user-notes.php