Packed Decimal Double Conversion Code
Last Post 09 Mar 1999 09:27 PM by Anonymous. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Anonymous
Editorial Staff Member
Editorial Staff Member
Posts:81236

--
08 Mar 1999 08:14 PM
I have some machine dependent PC code that does the conversion from packed decimal to a double precision in C on a PC. The problem is, it uses a 64bit data type to do it and its compiler and machine dependent. I need some ansi-C code to do the same task. Does anyone out there have anything that can help me out? I know the PC data types can only handle 15 digits of precision but its not a problem if I loose precision on numbers that large.
Anonymous
Editorial Staff Member
Editorial Staff Member
Posts:81236

--
09 Mar 1999 09:27 PM Accepted Answer
...use the QXXPTOD function, listed in the ILE/C Ref manual ? Take a look at; http://publib.boulder.ibm.com:80/cg...0/1.10.119 --phil
____________________________________
Phil Hall [forum moderator]
hallp@ssax.com
Anonymous
Editorial Staff Member
Editorial Staff Member
Posts:81236

--
09 Mar 1999 09:27 PM Accepted Answer
...use the QXXPTOD function and his brother QXXDTOP, listed in the ILE/C Ref manual ? Take a look at QXXPTOD online @; http://publib.boulder.ibm.com:80/cg...0/1.10.119 And QXXDTOP online @: http://publib.boulder.ibm.com:80/cg...0/1.10.115 --phil
____________________________________
Phil Hall [forum moderator]
hallp@ssax.com
Anonymous
Editorial Staff Member
Editorial Staff Member
Posts:81236

--
16 Mar 1999 02:16 PM Accepted Answer
Well therein lies the problem I am trying to write ANSI C code to do this so I can port it to another platform!!! Using those API's defeat the purpose - what I need is the code to those API's Any other ideas? I really need this one. The data will be received by a different platform raw - there is no way to change it on the AS/400 before it gets sent. It must be done on the other site. Thanks, Todd
You are not authorized to post a reply.

Acceptable Use Policy