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 | CONST

Edit History

CONST

CONST name = expr

Home > Reference > Language

Declare a variable name who’s value does not change during program execution. name follows the rules for naming SmallBASIC variables. expr is an expression consisting of literals, with or without operators, only.

Example

CONST G = 6.67259E-11
CONST PISQUARE = PI^2
Code samples using CONST
002 numeric variables.bas   003 conditional branching.bas   100lines.bas   2048.bas   3d_torus.bas   3dtorus.bas   another look at trig functions.bas   bairstow.bas   base64.bas   blackbox.bas   Blackbox.bas   bowling7.bas   btn 21.bas   Calendar.bas   calendar.bas   chart.bas   Charts.bas   checkers.bas   chess.bas   circles Kalide v2.bas   colors1.bas   conrec-sb-v01.bas   crgb.bas   dmsareaplot.bas   doodle.bas   driven_mass_and_spring.bas   Euro_calculator.bas   ezinvaders.bas   Factor.bas  
Language
AND   AS   BAND   BG   BOR   BYREF   CALL   CASE   CATCH   CONST   DECLARE   DEF   DO   ELIF   ELSE   ELSEIF   END   END TRY   ENDIF   EQV   EXIT   FALSE   FI   FOR   FUNC   GOSUB   GOTO   IF   IFF   IMP   IN   LABEL   LET   LIKE   LOCAL   LSHIFT   MDL   MOD   NAND   NEXT   NOR   NOT   ON   OR   REM   REPEAT   RETURN   RSHIFT   SELECT   STEP   STOP   SUB   THEN   THROW   TO   TRUE   TRY   UNTIL   USE   USG   USING   WEND   WHILE   XNOR   XOR  
This page was last edited on Thu, 21 Sep 2023 14:07:38 +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.