XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ D1num_sub()

Sub D1num_sub ( Ret As  Double,
I As  Long,
Optional Info As  Long 
)

IEEE 754 special numbers (double precision) (Subroutine version)

Purpose
Returns special numbers in IEEE 754 double precision floating-point arithmetic.
Parameters
[out]RetThe value specified by I. (0 will be returned if I is invalid.)
[in]ISpecifies the value to be returned.
= 1: Positive infinity (+∞)
= 2: Negative infinity (-∞)
= 3: Not a number (qNaN) (7ff8 0000 0000 0000 in hexadecimal representation)
= 4: Not a number (-qNaN) (fff8 0000 0000 0000 in hexadecimal representation)
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument I had an illegal value. (I < 1 or I > 4)