>I have to convert a perl script to PHP trying to do so I get negative
>values from hexdec(), If I use (int)hexdec() the numbers aren't negative
>anymore, but they do not add up to what they should.

>From the manual:  http://php.net/hexdec
"The largest number that can be converted is 7fffffff or 2147483647 in
decimal."

I'm betting your numbers are bigger than that.

I wrote a less-limited hex2dec function years ago, and threw it up on Sklar,
or, uhhh, the *other* PHP code repository.  There were really only two, back
then... :-)

-- 
Like Music?  http://l-i-e.com/artists.htm


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

Reply via email to