Public Function PreviousOdd( _ ByVal vX As Variant _ ) As Variant
PreviousOdd(0) = -1 PreviousOdd(1) = -1 PreviousOdd(2) = 1 PreviousOdd(45) = 43 PreviousOdd(22.4) = 21 PreviousOdd(-1.7) = -3 PreviousOdd(-6.5) = -7 PreviousOdd(-7.8) = -9See also:
PreviousOddSample Subroutine PreviousEven Function PreviousNumber Function NextOdd FunctionvX: Number which is rounded-down to the previous odd number (i.e. 1, 3, 5, -1, -3, -5, etc.). Function returns Null if vX is Null or cannot be fixed up to a number.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.