Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 13767, Exploring Numbers, Not-A-Number (NaN), and Infinity (INF)

by Earl F. Glynn Email: efg2@efg2.com


Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 3.0  to 4.0 446 downloads
Copyright: Commercial use requires permission


Size: 165,328 bytes
Updated on Tue, 17 Aug 1999 00:00:00 GMT
Originally uploaded on Tue, 17 Aug 1999 00:00:00 GMT
SHA1 Hash: 1D5B6D60226934A8BBC1B4CEA428AF468215D594
MD5 Hash: 58A08050B3DAEA202677E8DA9466528E

    Explore the files in this upload

Description
In this Tech Note (NaN.htm), you'll discover how to create and use a NaN (not-a-number) and INF (infinity) values in your Delphi mathematical calculations with the help of the new Int64 feature in Delphi 4. The Tech Note also reviews some of the changes related to numbers introduced in Delphi 4.

First appeared in the October 1998 "Delphi Developer," pp. 9-14. Appearing here with updates and additions.

Contents:
- Ordinal Types
- Real Types
- When a Real is Actually an Integer
- IEEE 754-1985
- "Quiet" vs. "Signaling" NaNs
- Other Examples of Handling Exceptions
- Mean and Standard Deviation Example
- Conclusions
- Postscript

The "home" of this Tech Note is:
http://www.efg2.com/Lab/Mathematics/NaN.htm

Keywords: NaN, INF, ShortInt, Byte, SmallInt, Word, LongWord, LongInt, Int64, LongLong, Integer, Cardinal, Single, Real48, Double, Extended, Comp, Currency, IEEE 754-1985, Normal, Subnormal, Quiet NaN, Signaling NaN, Absolute keyword, DoubleToHex, HexToDouble, IsInfinity, IsNaN, MeanAndStandardDeviation procedure, EZeroDivide, EInvalidOp

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04