How do I set a cap on floats


I don’t want it to go past 3000.

Clamp it.

image

Where do I insert it at?

Just before setting the variable: