pub fn bstep(x: f64) -> f64
calculate the binary step to the given f64 number
binary step
let x:f64 = 0.5; let answer:f64 = bstep(x); println!("bstep({}) => {}",x,answer);