Max: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(edit)
 
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  MAX(X1,X2...)
  MAX(<value>,<value>[,...])


The '''Max''' [[internal function]] returns the largest numeric value in the set of numbers inside parentheses (X1, X2 and
The '''Max''' [[internal function]] returns the largest numeric value in the set of numbers inside parentheses (X1, X2 and
Line 12: Line 12:
The above program will print the number 10.
The above program will print the number 10.


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


====Technical Considerations====
====Technical Considerations====
:1.) The number of items that can be listed inside the parentheses 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 parentheses is limited only by the maximum line length of 800 characters in source code or 255 characters in compiled code.
 
<noinclude>
[[Category:Internal Functions]]
</noinclude>

Latest revision as of 00:20, 22 May 2014

MAX(<value>,<value>[,...])

The Max internal function returns the largest 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 MAX(A,B,C)

The above program will print the number 10.

Related Functions

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

Technical Considerations

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