How would i cap the SpinBox decimal

I am using a spin box for setting sensitivity I have the functionality done but now I don’t want it to have a number with 6 decimals i would like to set it to be with 2.

Something like this:
1

This topic has been moved from International to Programming & Scripting.

When posting, please review the categories to ensure your topic is posted in the most relevant space.