Site Tools
Sidebar
User's Manual
t2:min
min
min — Find lowest value
Description
int32 min(int32 numA, int32 numB);
fix32 min(fix32 numA, fix32 numB);
Returns the smallest of numA and numB. If both are equivalent, numA is returned.
Parameters
- numA, numB: Values to compare.
Return Value
The lesser of the values passed as arguments.
Examples
Example #1 min() example
init { printf("%d", min(1, 2)); // 1 printf("%d", min(2, 1)); // 1 printf("%c", min('a', 'z')); // a printf("%.2f", min(3.14, 2.72)); // 2.72 }
See Also
t2/min.txt · Last modified: 2016/11/12 17:14 by J2Kbr