Questo sito non è ne attivo ne aggiornato, specialmente la pagina del download รจ ferma a 5 vesioni fa , utilizzate il sito in inglese finchè questo sito non sarà annunciato ufficialmente
Reference Language (extended) | Libraries | Comparison | Board
Calculates the maximum of two numbers.
x: the first number, any data type
y: the second number, any data type
The larger of the two parameter values.
sensVal = max(senVal, 20); // assigns sensVal to the larger of sensVal or 20
// (effectively ensuring that it is at least 20)
Perhaps counter-intuitively, max() is often used to constrain the lower end of a variable's range, while min() is used to constrain the upper end of the range.
Puoi postare correzioni, suggerimenti, e nuova documentazione nel Forum.
I contenuti della guida di riferimento sono distribiuti con licenza Creative Commons Attribution-ShareAlike 3.0 License. Gli esempi di codice nella guida di riferimento sono di pubblico dominio.