Artificial intelligent assistant

Calculate variable in expression with Truncate function I would like to know how to calculate MaxDigitWidth variable by using CharWidth and Pixels variables in the following expression: CharWidth = Truncate((Pixels - 5) / MaxDigitWidth * 100 + 0.5) / 100 It should be in a form: MaxDigitWidth = ... expression with CharWidth and Pixels variables ... The problem is that I do not know how to get the expression in the required form because of the Truncate function.

Lets call MaxDigitWidth $M$, CharWidth $C$ and Pixels $P$. I assume $M,C,P\geq 0$ so that truncation is just rounding down.

Your formula amounts to $100C = \left\lfloor100\frac{P-5}{M}+\frac{1}{2}\right\rfloor$, that is $100C\leq 100\frac{P-5}{M}+\frac{1}{2} < 100C+1$ or $C-\frac{1}{200}\leq\frac{P-5}{M}
If $C\geq 1$ we have $\frac{200P-1000}{200C-1}\geq M>\frac{200P-1000}{200C+1}$. If a solution exists, then $M = \left\lfloor\frac{200P-1000}{200C-1}\right\rfloor$ is a solution.

Note though that there might not be any solution or there might be more than one depending on $P$ and $C$.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 7b5ffff77ce2609bce08d7d92ac43f56