Use C2X, pull off the last character, this will leave you with the core number. You can analyze the last character to determine the sign if required.<br><br>Ex.<FONT FACE=monospace> <br>packed = '0012345D'x /* sample starting value */<br>unpked = c2x(packed) /* gives you 0012345D */<br>sign = right(unpked,1) /* get right most character */<br>num = left(unpked,length(unpked)-1) /* remove sign */<br><br>if sign = 'D' then num = -num</font><br><br>Hope this helps <A HREF="mailto:mcampbel@wellsfargo.com">mcampbel@wellsfargo.com</A>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.