dot-as.zeroOne function

Turns a value into 0/1 numeric.