RADIX

Inquiry Intrinsic Function (Generic): Returns the base of the model representing numbers of the same type and kind as the argument.

Syntax

result = RADIX (x)

x
(Input) Must be of type integer or real; it can be scalar or array valued.

Results:

The result is a scalar of type default integer. For an integer argument, the result has the value r (as defined in Model for Integer Data). For a real argument, the result has the value b (as defined in Model for Real Data).

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: DIGITS, EXPONENT, FRACTION, Data Representation Models

Example

If X is a REAL(4) value, RADIX (X) has the value 2.