%UNS (Convert to Unsigned Format)

%UNS(numeric or character expression)

%UNS converts the value of the expression to unsigned format. Any decimal digits are truncated. %UNS can be used to truncate the decimal positions from a float or decimal value allowing it to be used as an array index.

If the parameter is a character expression, the following rules apply:

For more information, see Conversion Operations or Built-in Functions.

Figure 269 shows an example of the %UNS built-in function.



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