To find the approximate weight of all the ants in the world, we can multiply the average weight of one ant by the total number of ants:
\[ \text{Total weight} = (\text{Weight of one ant}) \times (\text{Number of ants}) \]
Substituting the values:
\[ \text{Total weight} = (3 \times 10^{-6} \text{ kg}) \times (1 \times 10^{16}) \]
Now, we can multiply the coefficients and add the exponents:
\[ 3 \times 1 = 3 \] \[ 10^{-6} \times 10^{16} = 10^{-6 + 16} = 10^{10} \]
Putting it all together:
\[ \text{Total weight} = 3 \times 10^{10} \text{ kg} \]
Therefore, the approximate weight of all the ants in the world is
\[ \boxed{3 \times 10^{10}} \text{ kg} \]