We say there are only values in digital 1 and 0

1 can have any voltage value between say(-3 to -25 voltd)
and 0 can have any voltage value between say(+3 to +25 voltage)

hows does we know which voltage value does it choose when the signal is 1 or 0