QXXITOZ() — Convert Integer to Zoned Decimal

Format

#include <xxcvt.h>
void QXXITOZ(unsigned char *zptr, int digits, int fraction, int value);

Language Level: ILE C Extension

Threadsafe: Yes.

Description

The QXXITOZ function converts the integer 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 QXXITOZ()

#include <xxcvt.h>
#include <stdio.h>
 
int main(void)
{
  unsigned char zptr[10];
  int digits = 9, fraction = 0;
  int value = 111115;
 
  QXXITOZ(zptr, digits, fraction, value);
                        /* Zoned value is : 000111115 */
}

Related Information



[ Top of Page | Previous Page | Next Page | Contents | Index ]