I’m taking an input (Input Height), and trying to set the value of a custom state (RoundedHeight) to the input rounded up to the next 200.

I’ve created a Set States action in the Workflow section, and in the Value field, I currently have this:

The problem I have is I now need to divide by 200, but it doesn’t work to just type 200, and I can’t see another option to insert a fixed integer… please could someone point out where I’m going wrong?

What type is the custom state is it an integer?

Also try to type 200 and then exit the black popup

Bubble calls it a number, so I presume that’s an integer in this context.

Your suggestion of typing 200 seems to have worked, but I think that won’t quite get me to the result I need - I think I need to divide the input by 200, apply the ceiling function to that result, and then multiply by 200 again. Is there anyway of using brackets within the formula?

Hmm there is a “no plugin way” for that but you might need to add another set state step

Set it like that so after the set state where you divide it by 200 now you make another set state where u take the result * by 200