I recently wrote some code which used the Fortran intrinsic function ACOS. The argument of course must lie between -1.0 and 1.0 for any meaningful result. My example code computed a value for the argument which was -1.0 except at the 15th decimal place, but FTN95 still raised a run time error due to an argument outwith the allowed range
My request is for the FTN95 versions of ACOS/ASIN to behave more like Linux/Unix versions, i.e. if the number is -1 or +1 within a certain (generous) tolerance, it be treated as exactly -1 or + 1
Over the years I have found many examples where this behaviour has necessitated writing extra code to ensure arguments don't fall outwith the allowed range. This code is not necessary when using most Linux/Unix Fortran compilers !