SET_EXPONENT(X,I)

Purpose

Returns the number whose fractional part is the fractional part of the model representation of X, and whose exponent part is I.

Class

Elemental function

Argument type and attributes

X
must be of type real.
I
must be of type integer.

Result type and attributes

Same as X.

Result value

Examples

IBM Extension

SET_EXPONENT (10.5, 1) = 0.65625 * 2.01 = 1.3125

See Real data model.

End of IBM Extension