Both the standard (no extension) and USL (.h extension) headers can be used for input/output of _DecimalT objects. To use the C <stdio> formatted input/output routines, specify the %D(n,p) type format used for the C language internally defined decimal type.
Assuming that you are using header files with a .h extension:
To print the value of a _DecimalT class template, you can use the fprintf(), printf(), sprintf(), vfprintf(), vprintf(), or vsprintf() functions.
To read the value of a _DecimalT class template, you can use the fscanf(), scanf(), or sscanf() functions.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.