A point is chosen at random within the square in the coordinate plane whose vertices are $(0, 0)$, $(2020, 0)$, $(2020, 2020)$, and $(0, 2020)$. The probability that the point is within $d$ units of a lattice point is $\frac{1}{2}$. (A point $(x, y)$ is a lattice point if $x$ and $y$ are both integers.) If the answer is $d$ to the nearest tenth, what is the value of $10d$?

Let's think step by step and output the final answer within \boxed{}.
user