Any ideas on how to constrain a variable so that there are no repeated adjacent digits in its decimal representation?

In reply to dave_59:

Thanks Dave. That should work although some simulators dont allow power (**) in constraints.