Previous Topic Next topic Print topic


UNSIGNED Function

Purpose

Returns an unsigned FIXED BINARY value.

Syntax

UNSIGNED(x,p[,q])

Parameters

x is an expression and p and q are integers representing precision and scale factor, respectively.

Description

UNSIGNED converts the expression x into an unsigned FIXED BINARY value with a specified precision p and, optionally, a scale factor q. If q is omitted, the default scaling factor is zero.

Examples

dcl s31 fixed binary (31) init(-1);
put skip list (UNSIGNED(s31,32,0));

Prints maximum UNSIGNED FIXED BIN(32) value.

Restrictions

The scaling factor q is not currently supported for signed and unsigned FIXED BIN data types and is assumed to be zero.

Previous Topic Next topic Print topic