switching between values

I can see that Pile might do it, but cant see a way of translating between voltage and specific values