RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.SetExceptionMask Function

Sets the exception mask on the FPU control word.

Pascal
function SetExceptionMask(const Mask: TFPUExceptionMask): TFPUExceptionMask;
C++
TFPUExceptionMask SetExceptionMask(const TFPUExceptionMask Mask);

Math

Call SetExceptionMask to specify the types of exceptions the FPU (floating-point unit) generates. Any element set in this mask prevents the FPU from raising the corresponding type of exception. Instead, 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. 

SetExceptionMask returns the previous exception mask. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!