> Forgive me if my math is askew, but doesn't the negative imply the
> number is signed? If I remember from my C++ days, a declaration of:
>
> unsigned int blah;
>
> Meant you could not store negative numbers in that variable. Hence,
> negatives would be signed. No?

Yes, but once it become a hex string (after dechex()), all that info is
gone. I think the way to handle this situation is to use pack & unpack.

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to