Blitz (171/218)

From:Tony Rolfe
Date:27 Aug 2001 at 01:28:41
Subject:Re: dec --> hex

On 27 Aug 2001, at 2:24, amorel wrote:

> On 26-Aug-01, Tony Rolfe wrote:
> C=On 26 Aug 2001, at 2:16, amorel wrote:
>
> C=> Is there any function to convert a decimal to hexadecimal? I just
> C=> can`t find any. C=>
>
> C=Isn't there a hex$ command which returns a string of hex characters
> C=nprint Hex$(16) -> 10
>
> C=Or is that not what you want?
>
> I read that command but it`s vague to me what it does. Convert a hex
> number to a string, reeverse or? I need a hex number like c2 converted
> to the decimal value.
>
Hex$ converts a decimal number to a string containing the
equivalent value in Hex digits e.g. 255 -> "FF"

To convert Hex C2 to the decimal equivalent do a.l = $C2

The leading $ means that the number following is in hex. % means
binary (a.l = %11000010 would do the same as a.l = $C2)

Regards

Tony Rolfe
For Gill & Tony Rolfe
EDGEWATER MOTEL
1 Princess Avenue South
BURRILL LAKE NSW 2539
Phone: +61 2 4455 2604
Fax: +61 2 4454 4095
http://www.shoalhaven.net.au/edgewater

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie