<-- Previous || Up || Next -->

Frequency To Band Number Function
Math Miscellaneous Class

Public Function FrequencyToBandNumber( _
    ByVal vFreqInHz As Variant _
    ) As Variant

Return the band number for a frequency measured in Hertz (cycles per second).

Examples:
    FrequencyToBandNumber(980000) = 6
    FrequencyToBandNumber(575000000) = 9
    FrequencyToBandNumber(10000000) = 7
    FrequencyToBandNumber(123) = 2
    FrequencyToBandNumber(-123) = -1
See also:
    FrequencyToBandAbbreviation Function
    ConvertMeasure Function
vFreqInHz: Number representing a frequency as measured in Hertz or cycles per second. Function returns Null if vFreqInHz is Null or cannot be fixed up to a number.

Function returns -1 if vFreqInHz is <= 0 (less than or equal to zero).

Definition:

    Int(LogNReal(Frequency, 10) - LogNReal(3, 10) + 1)

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.