Apparently numbers can be both odd and even…
If IsNumeric(StreetNumberValue) Then If 2 Mod CType(StreetNumberValue, Integer) = 0 Then OddEven = "E" 'Even Else OddEven = "O" 'Odd End If Else OddEven = "B" 'Both End If
As seen here:
http://worsethanfailure.com/Articles/Odd-or-Even-or-Both.aspx
Related posts:
- The answer in Ruby (so far)
- Best javascript function ever
- links for 2009-01-12
- links for 2009-02-23
- links for 2009-04-06
Tags: Elementary number theory, Evenness of zero, Mathematics, Modular arithmetic, Number theory, Parity, Singly and doubly even