I'm really not too sure how to go on about this:
Problem. Julia (or take MatLab etc. (I guess.)) computes
In [1]: exp(pi*sqrt(67)/6) - sqrt(5280)
Out[1]: 6.121204876308184e-8
Only by looking closely: How many digits are correct? (What could you do to compute $16$ decimals correctly?)
So I know that subtraction is somewhat dangerous numerically - though how do I solve this problem in a precise manner?
Using a multi-precision package like the CAS Magma you can compute a value where perhaps the last 10 of 200 digits are polluted by truncation and rounding errors. The loop using different target digit numbers
gives the result
This shows empirically that all but the last 5 digits are correct. Compared to your floating point result
we see that 7 digits are correct. Using the modified formula by Andrei $$ \frac{e^{2\pi\sqrt{67}/6}-5280}{e^{\pi\sqrt{67}/6}+\sqrt{5280}} $$ gives the floating point result
which is further away from the true result, it does not cure the catastrophic cancellation.
If you have two numbers $a,b$ that coincide in $d$ leading digits, then for any smooth function $f$ you will also get coincidence in about $d$ leading digits of $f(a)$ and $f(b)$. This means that the difference $f(a)-f(b)$ has $15-d$ correct digits. There is no way to force more precision, as that is not present in the original floating point values.
Note that this is different from the situation where you want to compute $f(a+h)-f(a)$ where $h$ is explicitly known. Then you can apply Taylor formulas or just a mean value argument like $f(a+h)-f(a)\approx f(a+h/2)\cdot h$. This will have almost as many correct digits as $h$ has for $|h|<10^{-5}\cdot |a|$.