Format
#include <xxcvt.h>
void QXXITOP(unsigned char *pptr, int digits, int fraction,
int value);
Language Level: ILE C Extension
Threadsafe: Yes.
Description
The QXXITOP function converts the integer specified in value to a packed decimal number with digits total digits, and fraction fractional digits. The result is stored in the array pointed to by pptr.
Example that uses QXXITOP()
#include <xxcvt.h>
#include <stdio.h>
int main(void)
{
unsigned char pptr[10];
int digits = 3, fraction = 0;
int value = 116;
QXXITOP(pptr, digits, fraction, value);
}
Related Information