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 2806 Downloads 1088

Classic ASP Math
ANmarAmdeen
710
Revisions

v1.0