Min()

来自ALSROBOT WiKi
跳转至: 导航搜索
#define min(a, b) ((a)<(b)?(a):(b))

最小值

取两者之间最小值. 例如:

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