Close
Close window
NumericException - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

NumericException

return the exception string of an event

Calling Sequence

NumericException(event)

Parameters

event

-

symbol; represents one of six numeric events

Description

The NumericException(event) function returns the exception string associated with event.

Examples

>

NumericExceptiondivision_by_zero

numeric exception: division by zero

(1)
>

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:

>

NumericEventHandlerdivision_by_zero=MyHandler

division_by_zero=default

(2)
>

MyProc := proc(a,b) a/b; end proc:

>

1.0.

Float

(3)
>

MyProc1.,0.

See Also


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /