Measurement error?

The total length is 40 mm, why doesn't it divide by 20-20, why 19.9906 and 20.0094?

Usually, that’s because of some kind of unevenness. If you could share your project, I could probably explain why this is happening. One screenshot isn’t sufficient.