TINY Function

Purpose

Returns the smallest positive value allowable for a floating-point variable.

Syntax

TINY(x)

Parameters

x is an expression of type FLOAT BINARY or FLOAT DECIMAL.

Description

TINY returns a floating-point value that is the smallest positive value x can have. It has the base, mode, and precision of x.

The TINY built-in is not allowed during restricted expression evaluation.

Example

This example shows the IEEE FLOAT BINARY values returned for the TINY built-in.

dcl d float bin (52);
dcl f float bin (23);

   d = tiny(d);    /* 4.9406564584124654E-324 */
   f = tiny(f);    /* 1.401298464E-45         */