How do I do wraparound arithmetic without the system throwing an exception? I wish to create a sort of hash function based on time of day
It woks in C and Fortran but not in VB. Is there a way of saying just do it, and ignore exceptions.
Code:
dim secs as integer
dim hash as integer
secs = hour(now) * 3600 + minute(now) * 60 + second(now)
hash = secs * 9977553311 * 2244660088
It woks in C and Fortran but not in VB. Is there a way of saying just do it, and ignore exceptions.