Create a slider to vary integer and double values interactively.