View previous topic :: View next topic
|
Author |
Message |
Ajay Baghel
Active User
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
Hi,
My requirement is to convert 15digit decimal nuumber into its equivalent hexadecimal no.
I am trying D2X function, but it is working only till the decimal no is in 9 digits.
For eg:
SAY D2X(19852881001,20) is giving the below error:
IRX0040I error running the DECTOHEX. Incorrect call to routine.
Is it possible to find hexadecimal equivalent of 15digit number? It is working when no is in 9 digits.
Thanks,
Ajay |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
NUMERIC DIGITS |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
enrico-sorichetti wrote: |
NUMERIC DIGITS |
As opposed to NON-NUMERIC digits (those that are less then 0 or greater than 9). |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
sorry for my cryptic reply, ( finger check )
what I meant was "numeric digits" will set the number of digits for REXX decimal arithmetic
Code: |
say "d2x(123456789012345) ==>" || d2x(123456789012345) ||"<=="
|
will fail, but
Code: |
numeric digits 15
say "d2x(123456789012345) ==>" || d2x(123456789012345) ||"<=="
|
will work |
|
Back to top |
|
|
Ajay Baghel
Active User
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
Code: |
numeric digits 15
say d2x(123456789012345) |
is working fine.
Thank you Enrico and Craq for your prompt replies.
-Ajay |
|
Back to top |
|
|
|