arctica
Joined: 10 Sep 2006 Posts: 105 Location: United Kingdom
|
Posted: Sun Dec 24, 2023 5:15 pm Post subject: Extension to iso_fortran_env |
|
|
Hello.
There does not appear to be support for ieee_arithmetic in the current ftn95 e.g.
Code: |
program ieee
use, intrinsic :: iso_fortran_env, only: wp=>real64
use, intrinsic :: ieee_arithmetic
implicit none
print *, ieee_value(1.0_wp, ieee_positive_inf)
print *, ieee_value(1.0_wp, ieee_negative_inf)
end program ieee
|
This might be handy to have in a future release to deal better with coding infinity into mathematical functions. For infinity I just set a very large number as a break point.
Lester |
|