[@sensVal = min(sensVal, 100); // assigns sensVal to the smaller of sensVal or 100, ensuring that it never gets above 100.

Deleted lines 20-24:

!!!!Tipmin is useful for limiting the range a variable (say reading a sensor) can move. Even though the name min would seem to suggest it should be used to limit the sensor's minimum value, its real effect is to limit the variable's highest value. This can be slightly counterintuitive.

Programmers coming to C from the BASIC language may alsoexpect min to affect a variable without assigning the returned result to anything.

!!!!Common Programming ErrorsParadoxically, even though min would seem to limit the desired variable to a minimum value, it is really used to set the maximum value a variable can hold.

Programmers coming to C from the BASIC language may expect min to affect a variable without assigning the returned result to anything

to:

!!!!Tipmin is useful for limiting the range a variable (say reading a sensor) can move. Even though the name min would seem to suggest it should be used to limit the sensor's minimum value, its real effect is to limit the variable's highest value. This can be slightly counterintuitive.

Programmers coming to C from the BASIC language may alsoexpect min to affect a variable without assigning the returned result to anything.