Mmmmmmmmmmmmmmmm
Radix gives the same result:
:RADIX
XTD OTD BTD
DTX DTO DTB
ADDX ADDO ADDB ADDD
SUBX SUBO SUBB SUBD
MULX MULO MULB MULD
DIVX DIVO DIVB DIVD
Input action code = XTD
Input Hex String or New Action Code = 0102E84669
Decimal 48776809
Bob
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Robert Colquhoun
Sent: 18 August 2004 15:39
To: [EMAIL PROTECTED]
Subject: Re: [U2] Converting hexa to decimal
At 11:00 PM 18/08/2004, Christophe Marchal wrote:
>I'm trying to convert a hexadecimal string to its decimal value.
>My original string : 0102E84669
>
>I've tried oconv(original,"MCX") or xtd(original) but it seems to be not
>the good method.
>The result is : 48776809 wich is the result of xtd("02E84669")
>It seem to lost first hexadecimal value 01
The number above is larger than 32 bits....some of the inbuilt routines
like BITAND etc fail on anything greater than 2^32 maybe this includes MCX etc.
Try doing the above in a loop manually, just repeatedly trim off the last
digit and build up the decimal value from that.
- Robert
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/