radix
- Date:
02-06-2023
NAME
RADIX - Returns the base number from the real or integer number models
SYNOPSIS
RADIX ([X=]x)
STANDARDS
Fortran
DESCRIPTION
The RADIX intrinsic function returns the base number of the model (either real or integer) that represents numbers of the same type and kind type parameter as the argument specified. For more information on the real number model and the integer number model, see the models(3i) man page. RADIX accepts the following argument:
- x
Must be of type integer or real. It may be scalar or array valued.
RADIX is an inquiry function. The name of this intrinsic cannot be passed as an argument.
RETURN VALUES
The result is a default integer scalar. The result has the value r if x is of type integer and the value b if x is of type real, where r and b are as defined in the model.
EXAMPLES
RADIX(x) yields 2 for any x.
SEE ALSO
models(3i)