NumericException
return the exception string of an event
Calling Sequence
Parameters
Description
Examples
NumericException(event)
event
-
symbol; represents one of six numeric events
The NumericException(event) function returns the exception string associated with event.
NumericException⁡division_by_zero
numeric exception: division by zero
MyHandler := proc( f, ops, defVal ) if NumericEventLocation = 'MyProc' then error NumericException( 'division_by_zero' ); else NumericStatus( 'division_by_zero' = false ); defVal; end if; end proc:
NumericEventHandler⁡division_by_zero=MyHandler
division_by_zero=default
MyProc := proc(a,b) a/b; end proc:
1.0.
Float⁡∞
MyProc⁡1.,0.
Error, (in `anonymous procedure called from MyProc`) numeric exception: division by zero
See Also
error
events
numerics
Download Help Document