README.md

December 5, 2022 ยท View on GitHub

Better IsOdd

Description

Tell if a number is odd in one line of code. (and if its not odd its even, but i dont have to tell you that)

More Info

Submitted On
ByDave Katrowski
LevelBeginner
User Rating5.0 (10 globes from 2 users)
CompatibilityVB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script, ASP (Active Server Pages)
CategoryMath/ Dates
WorldVisual Basic
Archive File

API Declarations

'none

Source Code

Function IsOdd(Var as integer)
IsOdd = -(Var And 1)
End Function