MAX
m = MAX (var1 [, var2, …, varN)
MAX returns the maximum value of the given parameters
var1
to varN
. Parameters can be numbers,
arrays or strings.
Example
print MAX(3, 4, 8) ' Output: 8
print MAX("abc","def") ' Output: def
1, 5, 8]
x = [-print MAX(x) ' Output: 8
print MAX(x, 2, 9) ' Output: 9
Code samples using MAX
003 conditional branching.bas
005 challenge.bas
100lines.bas
2048.bas
2048.bas
3d rotating cube with message.bas
3d wire cube v1.bas
3d wire cube.bas
3d_torus.bas
3dtictac.bas
3dtorus.bas
7gables.bas
A Rubens, Peter Paul Landscape.bas
analog clock.bas
anball 1.0.bas
angel feather.bas
another look at trig functions.bas
aquarium v2.bas
arc_ui.bas
autumn scene.bas
balls.bas
betrayal: crows ii.bas
bezier's autograph book.bas
bezierbounce.bas
biorythms.bas
blackbox.bas
Blackbox.bas
blushing snowflakes.bas
boing.bas
Math
ABS
ABSMAX
ABSMIN
ACOS
ACOSH
ACOT
ACOTH
ACSC
ACSCH
ASEC
ASECH
ASIN
ASINH
ATAN
ATAN2
ATANH
ATN
CEIL
COS
COSH
COT
COTH
CSC
CSCH
DEG
DERIV
DETERM
DIFFEQN
EXP
EXPRSEQ
FIX
FLOOR
FRAC
INT
INTERSECT
INVERSE
LINEQN
LOG
LOG10
M3APPLY
M3IDENT
M3ROTATE
M3SCALE
M3TRANS
MAX
MIN
POLYAREA
POLYCENT
POLYEXT
POW
PTDISTLN
PTDISTSEG
PTSIGN
RAD
RND
ROOT
ROUND
SEC
SECH
SEGCOS
SEGLEN
SEGSIN
SEQ
SGN
SIN
SINH
SQR
STATMEAN
STATMEANDEV
STATMEDIAN
STATSPREADP
STATSPREADS
STATSTD
SUM
SUMSQ
TAN
TANH
TRANSPOSE
If there is insufficient information on this page and you wish learn more about MAX,
please send an email to smallbasic@gmail.com. You can help to improve information about
MAX by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.