Re: show Hex Numbers
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: show Hex Numbers

From: Evertjan. <exjxw.hannivoort@interxnl.net>
Date: Fri Jan 20 2006 - 17:49:26 CET

VK wrote on 20 jan 2006 in comp.lang.javascript:

> JavaScript supports hexadecimal numeric literals in the form 0xFFFF.
> var foo = 0xFFFF; // foo is now 65535 decimal
>
> But internally it treats all numbers in decimal form.

No, binary.

Only the displaying of numbers converts to decimal.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Received on Tue Feb 7 21:15:47 2006