Public Function NextOdd( _ ByVal vX As Variant _ ) As Variant
NextOdd(0) = 1 NextOdd(1) = 3 NextOdd(2) = 3 NextOdd(45) = 47 NextOdd(22.4) = 23 NextOdd(-1.7) = -1 NextOdd(-6.5) = -5 NextOdd(-7.8) = -7See also:
NextOddSample Subroutine NextEven Function NextNumber Function PreviousOdd FunctionvX: Number which is rounded-up to the next 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.