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

◆ Log2_sub()

Sub Log2_sub ( Ret As  Double,
X As  Double,
Optional Info As  Long 
)

log2(x) (base-2 logarithm of x) (Subroutine version)

Purpose
Computes the base-2 logarithm of x.
Parameters
[out]Retlog2(x).
[in]XArgument x. (X > 0)
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument X had an illegal value. (X < 0)
= 1: Floating point range error.