Show: Delphi C++
Display Preferences

System.Math.TFPUExceptionMask

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

type TFPUExceptionMask = set of TFPUException;

C++

typedef System::Set<TFPUException, TFPUException::exInvalidOp, TFPUException::exPrecision> TFPUExceptionMask;

Properties

Type Visibility Source Unit Parent
set
typedef
public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Specifies a set of masked FPU floating-point exceptions.

The FPU (Floating Point Unit) handles floating point calculations on 32-bit systems. You can prevent FPU floating-point exceptions from occuring by using SetFPUExceptionMask to mask some or all of them.

When an exception is masked, the FPU returns its best attempt at a value – often NaN, Infinity, or NegInfinity. The value depends on the operation and the current rounding mode (see GetFPURoundMode and SetFPURoundMode).

TFPUExceptionMask values are defined in TArithmeticException: exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance