Voltage is 0.05 when switch is closed
Swap the resistor and switch
Nothing is perfect. Your switch has resistance. Wanting &quot;0V&quot; is like saying you want something to be exactly one meter long.