There is a well-know quotation of Euler in a letter from 1746 to Goldbach:
Letztens habe ich gefunden, dass diese expressio $\sqrt{-1}^{\sqrt{-1}}$ einen valorem realem habe, welcher in fractionibus decimalibus $=0,2078795763$, welches mir merkwürdig zu seyn scheinet.
For the principal value of the logarithm the expresssion is $i^i=\exp(i \log(e^{i\pi/2}))= e^{-\pi/2}$.
My question is, how did Euler calculate this with such an accuracy?