I have this Desmos graph which is a number display. You type a button and that number gets displayed. I'm thinking about turning it into a calculator, but first I need a decimal point. (Also the negative function doesn't work, but that's a problem for another time). The way the display works is that I have a slider $a$ for the number being typed. Every subsequent digit $n$ you type, it preforms the action $a\rightarrow10a+n$.
I've tried having a separate slider "$p$" with a step of 1 to represent the place of the decimal point, but I have yet to figure out how to utilise it. The closest thing I've seen for what I'm trying to find is on this graph from a contest in $2020$, but I have absolutely no clue what the heck is going on in there.
I think it should be something along the lines of this: "after the decimal point is placed, every subsequent digit $q$ typed will be divided by [the place of the decimal point times ten] and then added onto the total", but I'm still not entirely sure how I would go about doing that.
Any ideas?