Format
#include <xxcvt.h>
void QXXDTOZ(unsigned char *zptr, int digits, int fraction,
double value);
Language Level: ILE C Extension
Threadsafe: Yes.
Description
The QXXDTOZ function converts the double value specified in value to a zoned decimal number with digits total digits, and fraction fractional digits. The result is stored in the array pointed to by zptr.
Example that uses QXXDTOZ()
#include <xxcvt.h>
#include <stdio.h>
int main(void)
{
unsigned char zptr[10];
int digits = 8, fraction = 6;
double value = 3.141593;
QXXDTOZ(zptr, digits, fraction, value);
} /* Zoned value is : 03141593 */
Related Information