\[S = \frac{\pi d^{2}}{4}\]
\[4S = \pi d^{2}\]
\[d^{2} = \frac{4S}{\pi}\]
\[d = \sqrt{\frac{4S}{\pi}} = 2\sqrt{\frac{S}{\pi}}.\]