9.219. RADIX

9.219 RADIX — Base of a model number

Description:

RADIX(X) returns the base of the model representing the entity X.

Standard:

Fortran 95 and later

Class:

Inquiry function

Syntax:

RESULT = RADIX(X)

Arguments:
X Shall be of type INTEGER or REAL
Return value:

The return value is a scalar of type INTEGER and of the default integer kind.

See also:

SELECTED_REAL_KIND

Example:
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

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gfortran/RADIX.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部