Min()

来自Microduino Wikipedia
跳转至: 导航搜索
#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.


[返回Arduino语法手册]