![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395264x1.png)
11
•Division by
•
•
•
Math Library Exception-Handling Function: matherr()
Some libm functions are specified to call matherr()when an exception is detected. You can redefine matherr() by including a function named matherr() in the program. When an exception occurs, a pointer to the exception structure, exc, is passed to the
type
exception = record
kind: integer;
name: ^string;
arg1: double;
arg2: double;
retval: double; end;
The element kind is an integer constant that describes the type of exception that occurred, and is one of the following constants. These constants are defined in the header file.
240 | Pascal 4.0 User’s Guide |