SUCC Function

Purpose

Returns a floating-point value with the base, mode, and precision of x, and that is the smallest number that is larger than x.

Syntax

SUCC(x)

Parameters

x
A FLOAT expression.

The -dfp compiler option (FLOAT DFP) must be in effect.

The argument x must be type FLOAT DECIMAL.

Description

The following relationships are satisfied by SUCC:

pred(succ(x)) = x
succ(pred(x)) = x