https://wiki.microduinoinc.com/index.php?title=Min()&feed=atom&action=historyMin() - Revision history2024-03-28T14:48:08ZRevision history for this page on the wikiMediaWiki 1.28.2https://wiki.microduinoinc.com/index.php?title=Min()&diff=14399&oldid=prevFengfeng: Created page with "<pre style="color:green"> #define min(a, b) ((a)<(b)?(a):(b)) </pre> Take the minimum value. <br> Take the minimum between two numbers. For example:<br> <pre style="color:gre..."2016-08-16T09:35:12Z<p>Created page with "<pre style="color:green"> #define min(a, b) ((a)<(b)?(a):(b)) </pre> Take the minimum value. <br> Take the minimum between two numbers. For example:<br> <pre style="color:gre..."</p>
<p><b>New page</b></p><div><pre style="color:green"><br />
#define min(a, b) ((a)<(b)?(a):(b))<br />
</pre><br />
Take the minimum value.<br />
<br><br />
<br />
Take the minimum between two numbers. For example:<br><br />
<pre style="color:green"><br />
sensVal = min(sensVal, 100); // assigns sensVal to the smaller of sensVal or 100<br />
// ensuring that it never gets above 100.<br />
</pre><br />
<br />
[[https://wiki.microduino.cc/index.php/Arduino_Syntax_Manual Return to Arduino Syntax Manual]]</div>Fengfeng