Public Function NextEven( _ ByVal vX As Variant _ ) As Variant
NextEven(1) = 2 NextEven(2) = 4 NextEven(3) = 4 NextEven(22.4) = 24 NextEven(-1.7) = 0 NextEven(-6.5) = -6 NextEven(-7.8) = -6See also:
NextEvenSample Subroutine NextOdd Function NextNumber Function PreviousEven FunctionvX: Number which is rounded-up to the next even number (i.e. 2, 4, 6, -2, -4, -6, 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.