RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.TFPUExceptionMask Type

TFPUExceptionMask defines a set of TFPUException values.

Pascal
TFPUExceptionMask = set of TFPUException;
C++
TFPUException TFPUExceptionMask;

The FPU (Floating Point Unit) handles floating point calculations. You can prevent exceptions from occuring by using SetExceptionMask 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 GetRoundMode and SetRoundMode).  

TFPUExceptionMask can have none, one, some or all of the following TFPUException values set :

Value 
Meaning 
exInvalidOp  
An invalid operation was attempted.  
exDenormalized  
A number was reduced in size smaller than can be stored as non-zero. It has been denormalized.  
exZeroDivide  
An attempt was made to divide by zero.  
exOverflow  
A number has exceeded the highest positive value supported.  
exUnderflow  
A number has exceeded the highest negative value supported.  
exPrecision  
A number has exceeded the number of digits of precision.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!