Fixed rounding error and Thread Number