yo pongo esta pero me siento un ladron
Código (vb) [Seleccionar]
Private Function IsOdiousNumber(lNum As Long) As Boolean
Dim l As Long
l = ((lNum And &H80000000) \ &H80000000)
l = l + ((lNum And &H40000000) \ &H40000000)
l = l + ((lNum And &H20000000) \ &H20000000)
l = l + ((lNum And &H10000000) \ &H10000000)
l = l + ((lNum And &H8000000) \ &H8000000)
l = l + ((lNum And &H4000000) \ &H4000000)
l = l + ((lNum And &H2000000) \ &H2000000)
l = l + ((lNum And &H1000000) \ &H1000000)
l = l + ((lNum And &H800000) \ &H800000)
l = l + ((lNum And &H400000) \ &H400000)
l = l + ((lNum And &H200000) \ &H200000)
l = l + ((lNum And &H100000) \ &H100000)
l = l + ((lNum And &H80000) \ &H80000)
l = l + ((lNum And &H40000) \ &H40000)
l = l + ((lNum And &H20000) \ &H20000)
l = l + ((lNum And &H10000) \ &H10000)
l = l + ((lNum And &H8000&) \ &H8000&)
l = l + ((lNum And &H4000) \ &H4000)
l = l + ((lNum And &H2000) \ &H2000)
l = l + ((lNum And &H1000) \ &H1000)
l = l + ((lNum And &H800) \ &H800)
l = l + ((lNum And &H400) \ &H400)
l = l + ((lNum And &H200) \ &H200)
l = l + ((lNum And &H100) \ &H100)
l = l + ((lNum And &H80) \ &H80)
l = l + ((lNum And &H40) \ &H40)
l = l + ((lNum And &H20) \ &H20)
l = l + ((lNum And &H10) \ &H10)
l = l + ((lNum And &H8) \ &H8)
l = l + ((lNum And &H4) \ &H4)
l = l + ((lNum And &H2) \ &H2)
l = l + ((lNum And &H1) \ &H1)
IsOdiousNumber = l Mod 2 <> 0
End Function