System.Math.RaiseExceptions

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RaiseExceptions(const ExceptionFlags: TArithmeticExceptions);

C++

extern DELPHI_PACKAGE void __fastcall RaiseExceptions(const TArithmeticExceptions ExceptionFlags = (TArithmeticExceptions() << TArithmeticException::exInvalidOp << TArithmeticException::exZeroDivide << TArithmeticException::exOverflow ));

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Raises cumulative floating-point number's exceptions.

Some floating-point hardware (for example ARM) set the cumulative floating-point exception status bits, but the hardware does not raise floating-point exceptions.

Any pending floating-point exceptions specified by ExceptionFlags cause the corresponding error to be raised. RaiseExceptions clears the cumulative exception flags specified by ExceptionFlags in the floating-point number hardware.

RaiseExceptions is the same as ClearExceptions with RaisePending is True.

If ExceptionFlags is empty, RaiseExceptions does not do anything.

RaiseExceptions is platform independent.

By default, ExceptionFlags is DefaultExceptionFlags:

DefaultExceptionFlags = [
 TArithmeticException.exInvalidOp,
 TArithmeticException.exZeroDivide,
 TArithmeticException.exOverflow];

See Also