GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | FIX

Edit History

FIX

FIX (x)

Home > Reference > Math

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  
This page was last edited on Mon, 17 Oct 2022 20:43:12 +0200 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.