Min: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
  MIN(X1,X2...)
  MIN(X1,X2...,XN)


The '''Min''' [[internal function]] returns the smallest numeric value in the set of numbers inside parentheses (X1, X2 and so on).
The '''Min''' [[internal function]] returns the smallest numeric value in the set of numbers inside parentheses (X1, X2 and so on).


====Comments and Examples====
====Comments and Examples====
  10 LET A = 8
  10 LET A = 8
  20 LET B = 10
  20 LET B = 10
Line 12: Line 13:


====Related Functions:====
====Related Functions:====
[[MIN$]] is a similar function for strings. [[MAX]] and [[MAX$]] return the largest values.
[[MIN$]] is a similar function for strings. [[MAX]] and [[MAX$]] return the largest values.


====Technical Considerations====
====Technical Considerations====
:1.) The number of items that can be listed inside the parenthesis is limited only by the maximum line length of 800 characters in source code or 255 characters in compiled code.
 
# The number of items that can be listed inside the parenthesis is limited only by the maximum line length of 800 characters in source code or 255 characters in compiled code.


<noinclude>
<noinclude>
[[Category:Internal Functions]]
[[Category:Internal Functions]]
</noinclude>
</noinclude>

Revision as of 21:24, 26 January 2012

MIN(X1,X2...,XN)

The Min internal function returns the smallest numeric value in the set of numbers inside parentheses (X1, X2 and so on).

Comments and Examples

10 LET A = 8
20 LET B = 10
30 LET C = 5
40 PRINT MIN(A,B,C)

The above program will print the number 5.

Related Functions:

MIN$ is a similar function for strings. MAX and MAX$ return the largest values.

Technical Considerations

  1. The number of items that can be listed inside the parenthesis is limited only by the maximum line length of 800 characters in source code or 255 characters in compiled code.