fn step(v: f64, sigma: f64, dir: Dir) -> f64
Step N5: v moved one step in the direction dir when the exact value lies strictly on that side (sigma has the sign of exact − v).
v
dir
sigma
exact − v