FIX
FIX (x)
Rounds x upwards to the nearest integer.
print "fix(1.1) = "; fix(1.1)
print "fix(1.5) = "; fix(1.5)
print "fix(1.9) = "; fix(1.9)
print "fix(-1.1) = "; fix(-1.1)
print "fix(-1.5) = "; fix(-1.5)
print "fix(-1.9) = "; fix(-1.9)
' Difference to ceil with negative numbers
print "ceil(1.1) = "; ceil(1.1)
print "ceil(1.5) = "; ceil(1.5)
print "ceil(1.9) = "; ceil(1.9)
print "ceil(-1.1) = "; ceil(-1.1)
print "ceil(-1.5) = "; ceil(-1.5)
print "ceil(-1.9) = "; ceil(-1.9)
Code samples using FIX
Balleta 2-11-15.bas
betrayal: crows ii.bas
biorythms.bas
bowling7.bas
coordplot.bas
crow.bas
fire demo.bas
first factors mga.bas
g2 Life.bas
g3 Life.bas
gaptest.bas
heart.bas
illuminati.bas
index.bas
Lava 2.bas
leastq.bas
lissajous2.bas
loadsavebmp.bas
loadsavebmp_fltk.bas
memory match game.bas
neolithic.bas
palm_cli.bas
pen pad.bas
raycaster.bas
raycaster.bas
realpolitik.bas
ripples.bas
rogue trader.bas
scales132.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 FIX,
please send an email to smallbasic@gmail.com. You can help to improve information about
FIX by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.