SCALEVAL Function

Purpose

Returns the value that represents the scale factor for a numeric expression. The value returned is a FIXED BINARY(31,0).

Syntax

SCALEVAL(x)

Parameter

x
A numeric expression.

Examples

SCALEVAL(x) returns 0 when x is FLOAT.

SCALEVAL(x) returns 2 when x is declared as FIXED DEC(10,2).

Restrictions

None.