2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. index:: RADIX, model representation, base, model representation, radix
10 RADIX --- Base of a model number
11 ********************************
13 .. function:: RADIX(X)
15 ``RADIX(X)`` returns the base of the model representing the entity :samp:`{X}`.
18 Shall be of type ``INTEGER`` or ``REAL``
21 The return value is a scalar of type ``INTEGER`` and of the default
31 .. code-block:: fortran
36 .. code-block:: fortran
39 print *, "The radix for the default integer kind is", radix(0)
40 print *, "The radix for the default real kind is", radix(0.0)
41 end program test_radix
44 :ref:`SELECTED_REAL_KIND`