I have a value where it needs to be decremented by $x\%$ successively $n$ times
For example, for
$$\begin{align*} \text{value} &= 100 \\ x &= 2\% \\ n &= 3 \end{align*}$$
we expect the value $94.1192$ because
$$\begin{align*} 100 - (\text{$2\%$ of 100}) &= 98\\ 98 - (\text{$2\%$ of 98}) &= 96.04\\ 96.04 - (\text{$2\%$ of 96.04}) &= 94.1192 \end{align*}$$
I am looking for a formula that can accomplish the goal.
Consider what it means to take $p\%$ off of an initial value $v_0$ to form a new value $v_1$:
$$v_1 = v_0 - (\text{$p\%$ of $v$}) = v_0 - \frac{p}{100} v_0 = \frac{100-p}{100} v_0$$
Take $p\%$ off of this again to form $v_2$:
$$v_2 = v_1 - (\text{$p\%$ of $v_1$}) = v_1 - \frac{p}{100} v_1 = \frac{100-p}{100} v_1$$
But then, we know $v_1$ in terms of just $v_0$:
$$v_2 = \frac{100-p}{100} \frac{100-p}{100} v_0 = \left( \frac{100-p}{100} \right)^2 v_0$$
Try this again and see if you can convince yourself of a pattern that gives $v_n$ for any positive integer $n$.