ABS
f = ABS (x)
Returns the absolute value of x
.
Example
1
a = 1
b = -
print abs(a) ' Output: 1
print abs(b) ' Output: 1
Code samples using ABS
001 3 ways to print hello 5 times.bas
7gables.bas
angel feather.bas
another look at trig functions.bas
B+B.bas
bairstow.bas
bb2fork smurf.bas
blackjack.bas
BlackJack.bas
bolmo.bas
Chaos_1xt.bas
Chaos_NPhase.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
coordplot.bas
dataminmax.bas
dmsareaplot.bas
dmsareareadmd.bas
fireworks.bas
gaptest.bas
gaussj.bas
glitter hopalong.bas
glitter hopalong.bas
gputmalc.bas
graphics sampler.bas
gridareaplot.bas
hopalong copy.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 ABS,
please send an email to smallbasic@gmail.com. You can help to improve information about
ABS by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.