Hello,
In my knowledge, the difference between 0. and 0 is that 0. keeps default precision and 0 is an integer in Mathematica. However, in the codes below, I can't understand how Mathematica deal with 0. and 0?
{1, 2, 3, 0., 0, 5, 6, 0., 0., 8} /. {a___, 0, b___} -> {a, , b}
Why didn't Mathematica replace the first 0. in {1, 2, 3, 0., 0, 5, 6, 0., 0., 8}?