I’m back with this question: how to round an input to nearest 1000? For example, if a user enters 1234 it should round to 1000 and display 1000 instead of 1234.
The previously suggested solution was to use a custom state = ((Input X /1000) rounded to 0) * 1000. That produces a round number for the input. However, it was subsequently discovered that when loading the page, setting the custom state to the initial value introduces too much delay, it occasionally takes longer to set the initial condition of the state than it does to load the graph element that uses the Input. The Input feeds a repeating group for the graph. Consequently the repeating group comes up with all zeros where data should be from the custom state. It happens only occasionally but enough to make it unusable.
Since the “initial content” of the Input is the custom state, it can’t be set to a fixed initial value and function as a custom state at the same time. …
Any other ideas?