Re: How to ignore the signed bit?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: How to ignore the signed bit?

From: <alexey@shtokalo.net>
Date: Mon Jan 23 2006 - 14:40:15 CET

I think following code mach easy :)

    function toHexString(_intValue)
    {
        var intHigh = (_intValue >> 16) & 0xFFFF;
        return "0x" + intHigh.toString(16) + (_intValue &
0xFFFF).toString(16);
    }
Received on Tue Feb 7 21:19:03 2006