Checking if float has a int value

hey i need to be able to check if the float is 1.0 or 2.0 is there a way to make this line work that way?

                if (PSLevel == Mathf.Clamp(PSLevel, 1, 100)){

Casting directly will cut the decimal point off, just:

int someInt = (int)someFloat;

You should probably use “Floor” (Mathf.Floor, basically “round down” to next lowest integer value), “Ceiling” (Mathf.Ceil, “round up” to next largest integer) or Round (Mathf.Round, normal rounding) first, to make sure you get the value you want.

thx i got it working with using mathf.floor