Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: dec to hex


Message #1 by "O'Hara, Elliott M" <EMOHARA@k...> on Wed, 20 Jun 2001 08:55:09 -0400

Anyone know the Javascript equivolent to Hex() in vbscript? Or is there one?

Message #2 by mariamr@g... on Mon, 25 Jun 2001 11:29:20

http://www-sbras.nsc.ru/cgi-

bin/vget/docs/ms/javacook/DOSFILES/COLORS/CKALEID.HTM



> 

> Anyone know the Javascript equivolent to Hex() in vbscript? Or is there 

one?



Message #3 by "TomMallard" <mallard@s...> on Mon, 25 Jun 2001 04:33:45 -0700
same function...hex(intDecimal)



If the number isn't an integer, it derives one before converting. You can

also represent hex as &Hxxx...



tom

----- Original Message -----

From: <mariamr@g...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Monday, June 25, 2001 11:29 AM

Subject: [asp_web_howto] Re: dec to hex





>

> http://www-sbras.nsc.ru/cgi-

> bin/vget/docs/ms/javacook/DOSFILES/COLORS/CKALEID.HTM

>

> >

> > Anyone know the Javascript equivolent to Hex() in vbscript? Or is there

> one?

>

>

>
Message #4 by "phil griffiths" <pgtips@m...> on Wed, 27 Jun 2001 09:49:16
You can use either parseInt() or toString() depending on what you've got 

and what you want (strings or numbers).  Both have an optional radix 

argument:

hexString = decimalNumber.toString(16)

hexNumber = parseInt(decimalString, 16)



> 

> Anyone know the Javascript equivolent to Hex() in vbscript? Or is there 

one?


  Return to Index