fixing the code generation to use bit-wise operators in which() and also to
guarantee precision by using ()
guaranteeing that the 1e-6 value is printed as expected instead of differences
in printing on different versions of perl breaking tests