JCL Help:MakeSignalingNaN@Double@TNaNTag

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Makes X a signaling NaN.


Pascal

 procedure MakeSignalingNaN(var X: Single; Tag: TNaNTag = 0); overload;
procedure MakeSignalingNaN(var X: Double; Tag: TNaNTag = 0); overload;
procedure MakeSignalingNaN(var X: Extended; Tag: TNaNTag = 0); overload;


Parameters

Parameters Description
var X: Single The floating point variable to change into a SNaN.
Tag: TNaNTag = 0 An integer value to be encoded in the resulting NaN value.


Description

Makes a floating point variable X a signaling NaN (SNaN). An SNaN is a NaN with the most significant fraction bit clear. SNaNs generally signal an floating-point invalidoperation exception whenever they appear as operands in arithmetic operations. SNaNs are typically used to trap or invoke an exception handler. They must be inserted by software; that is, the processor never generates an SNaN as a result of a floating-point operation.


See Also

TFloatingPointClass TNaNTag MakeQuietNaN GetNaNTag


About

Unit

JclMath


Donator

Robert Rossmair


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page