JCL Help:MakeQuietNaN@Double@TNaNTag

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Makes X a quiet NaN.


Pascal

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


Parameters

Parameters Description
var X: Single The floating point variable to change into a QNaN.
Tag: TNaNTag = 0 An integer value to be encoded in the resulting NaN value. It may be used to propagate some information through a sequence of arithmetic operations.


Description

Makes a floating point variable X a quiet NaN (QNaN). A QNaN is a NaN with the most significant fraction bit set. QNaNs, in contrast to signaling NaNs (SNaNs), are allowed to propagate through most arithmetic operations without signaling an exception.


See Also

TFloatingPointClass TNaNTag MakeSignalingNaN 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