CONST
CONST name = expr
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
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
checkers.bas
chess.bas
chess.bas
circles Kalide v2.bas
colors1.bas
conrec-sb-v01.bas
crgb.bas
dmsareaplot.bas
doodle.bas
driven_mass_and_spring.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
If there is insufficient information on this page and you wish learn more about CONST,
please send an email to smallbasic@gmail.com. You can help to improve information about
CONST by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.