Fixing sign variables

A built-in function can be used to fix nonpreferred sign variables. The function call can be in the following form:
x = decfix ( x );
The built-in function decfix() accepts a decimal-type expression as argument and returns a decimal value that has the same size (that is, same decimal types) and same value as the argument, but with the correct preferred sign. The function does not change the content of the argument. See the z/OS XL C/C++ Runtime Library Reference for more information on the decfix() library function.