max(x, y)
2つの引数 x,y のうち、大きいほうの値を返します。
●Example from Arduino Web Site
[c]
sensVal = max(senVal, 20); // assigns sensVal to the larger of sensVal or 20
// (effectively ensuring that it is at least 20)
[/c]
max(x, y)
2つの引数 x,y のうち、大きいほうの値を返します。
●Example from Arduino Web Site
[c]
sensVal = max(senVal, 20); // assigns sensVal to the larger of sensVal or 20
// (effectively ensuring that it is at least 20)
[/c]