Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

Intrinsic Functions for Floating-Point Inquiry and Control

The following table lists intrinsic functions for floating-point inquiry and control.

Certain functions (EXPONENT, FRACTION, NEAREST, RRSPACING, SCALE, SET_EXPONENT, and SPACING) return values related to components of the model set of real numbers. For a description of this model, see the Model for Real Data.

Name

Description

DIGITS

Returns number of significant digits for data of the same type as the argument.

EPSILON

Returns the smallest positive number that when added to one produces a number greater than one for data of the same type as the argument.

EXPONENT

Returns the exponent part of the representation of x.

FRACTION

Returns the fractional part of the representation of the argument.

HUGE

Returns largest number that can be represented by data of type the argument.

The portability routines GETCONTROLFPQQ, GETSTATUSFPQQ, LCWRQQ, SCWRQQ, SETCONTROLFPQQ, and SSWRQQ also supply this functionality.