IsEven + IsOdd

Returns True if integer is even by using IsEven
While IsOdd, will returns True if integer is Odd


Public

Tested

My Own Work

Function IsEven(Value)
 IsEven = ((Clng(Value) And Cbyte(1)) = 0)
End Function",""

Function IsOdd(Value)
 IsOdd = ((Clng(Value) And Cbyte(1)) = 1)
End Function",""

Value

Views 2551 Downloads 1016

Classic ASP Math
ANmarAmdeen
655
Revisions

v1.0