PHP support for hexadecimal

From: Date: Fri, 09 Feb 2001 06:15:48 +0000
Subject: PHP support for hexadecimal
Groups: php.general 
Request: Send a blank email to php-general+get-38902@lists.php.net to get a copy of this message
Hi, I have a question about PHP's support for unsigned integers. I was trying out the following code fragment.... $val = 0x80000000; $hexval_str = sprintf("%X", $val); echo $hexval_str; result= -80000000 It seems here that I can not represent $val as an unsigned integer. Since settype does not have unsigned types, does anyone know how I can use sprintf to format an unsigned value? Any help would be greatly appreciated. TIA! Michael

« previous php.general (#38902) next »