Max()

来自Microduino Wikipedia
跳转至: 导航搜索
#define max(a, b) ((a)>(b)?(a):(b))

最大值

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

sensVal = max(senVal, 20); // assigns sensVal to the larger of sensVal or 20
                           // (effectively ensuring that it is at least 20)


[返回Arduino语法手册]