This seems trivial but I've never managed to figure out how to do it in a non-trivial way:
Have a number (atom) and a slider (be it horizontal or vertical) which are 'synced', that is if one changes the number the slider changes and vice-versa.
Lorenzo