Lahey/Fujitsu Fortran

RADIX Function

Description

The RADIX function returns the number base of the physical representation of a number.

Syntax

RADIX (x)

Arguments

x is INTENT(IN) and must be of type INTEGER or REAL.

Result

The result is a default INTEGER scalar whose value is the number base of the physical representation of x. This value is two for all kinds of INTEGERs and REALs.

Example

write(*,*) radix(2.3) ! writes 2