I want to specify as type of a subroutine a floating point value (real) of 8 bytes precision.
I have read here that the modern way to do it would be:
real(real64), intent(out) :: price_open(length)
However, iso_fortran_env
is not supported by f2py
(same as it does not support iso_c_bindings
either).
I get errors of this type:
94 | real(kind=real64) price_open(length)
| 1
Error: Parameter 'real64' at (1) has not been declared or is a variable, which does not reduce to a constant expression
The link referenced before states that using kind would be the proper way if iso_fortran_env
is not available and that real*8
shall be avoided.
- I have been using
real(8)
is that equivalent to using kinds? If not, what shall I use? - What is wrong with
real*8
if I want to always enforce 8 bytes floating point values?