To check whether a digit is inside an integer (ruby)
- by Horace Ho
Chinese people do not like numbers with a digit 4 in it. I am going to implement a membership program with membership numbers not including the digit 4, say:
number = 3
number.next.has4?
=> true
how the has4? method can be done (efficiently)?