radix(x)
returns the base of the model representing the entity x
.
Fortran 95 and later
result = radix(x)
x
- Shall be of type integer
or real
The return value is a scalar of type integer
and of the default integer kind.
program test_radix
print *, "The radix for the default integer kind is", radix(0)
print *, "The radix for the default real kind is", radix(0.0)
end program test_radix