× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



hex? I missed that. Sorry.
 
D hex S 16 inz('0123456789ABCDEF') 
 
 
In your C specs divide by 16. The remainder +1 is the array index pointing
out the right most character. 
Repeat, until you've divided your answers by 16 til its 0, using the
remainders to establish your hex values.
 
for example, lets say the number is 44.
 
Dividing by 16 equals 2, with a remainder of 12. 12+1=13, The 13th array
element is 'D'
Dividing the above answer (2) by 16 is 0 with a remainder of 2. 2+1=3. The
3rd element is '2'
 
So, the hex number for 44 is 2D
 
(gads I hope this is right and not backwards. I never get this stuff right
the first time. But the idea is there, even if its messed up.)
 
---------------------------------------------------------
Booth Martin http://www.MartinVT.com
Booth@xxxxxxxxxxxx
---------------------------------------------------------
 
-------Original Message-------
 
From: RPG programming on the AS400 / iSeries
Date: Wednesday, July 30, 2003 9:09:41 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: RV: Converting Packed to Char.
 
> What is the problem with
>
> C eval wwRetVal = %trim(%EditC(CharNum:'3'))
>
> ??
>
> Won't this do exactly the same job? Use editcode N if you
> want the minus
> sign on the left.
 
If you take a look to my request and the code i later posted, you'll realize
that is not the same result.
 
Carlos K.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.