Bothness

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

3 Responses to “Bothness”

  1. There is that, and the fact that mod is used so that 1 and 2 will be the only 2 even numbers, and all the rest will be odd…

  2. hey, that’s VB!

  3. And it is now properly coloured…

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">