Check out example codes for "unity var not minus". It will help you in understanding the concepts better.

Code Example 1

void OnValidate()
{
    theValue = Mathf.Clamp(theValue, 0, float.MaxValue); // or int.MaxValue, if you need to use an int but can't use uint.
}

Learn ReactJs, React Native from akashmittal.com