TRPFPE(3F) COMMAND REFERENCE TRPFPE(3F)
NAME
trpfpe, fpecnt - trap and repair floating point faults
SYNOPSIS
subroutine trpfpe (numesg, rtnval)
double precision rtnval
integer function fpecnt ()
common /fpeflt/ fperr
logical fperr
DESCRIPTION
Trpfpe sets up a signal handler to trap arithmetic
exceptions. If the exception is due to a floating point
arithmetic fault, the result of the operation is replaced
with the rtnval specified. Rtnval must be a double
precision value. For example, 0d0 or dflmax().
The first numesg occurrences of a floating point arithmetic
error will cause a message to be written to the standard
error file (stderr). Any exception that can not be repaired
will result in the default action, typically an abort with
core image.
Fpecnt returns the number of faults since the last call to
trpfpe.
The logical value in the common block labeled fpeflt will be
set to .true. each time a fault occurs.
FILES
/usr/lib/libF77.a f77 intrinsic function (math) and
startup library.
CAVEATS
There is not a problem with the fixing an operation
generated by the f77 compiler, but there may be problems in
fixing an operation in an assembly language routine.
The CMP and DEI opcodes are not dealt with.
SEE ALSO
signal(3f), flmin(3f).
Printed 10/17/86 1
%%index%%
na:72,90;
sy:162,843;
de:1005,1129;
fi:2134,192;
ca:2326,299;
se:2625,117;
%%index%%000000000108