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) and flmin(3f). Printed 3/13/89 1
%%index%% na:312,106; sy:418,1299; de:1717,1337; fi:3054,227; ca:3281,339; se:3620,147; %%index%%000000000111