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