Top | Up (Operators) | < Previous (INC) | Next (DIV) >
Subtracts a value from a variable.
DEC number_variable [, amount]
DEC variable, amount
is a shorter way of writing variable = variable - amount
(similar to variable -= amount
in other languages).
amount
is 1 if omitted.
X=13
DEC X
PRINT X '12
DEC X,10
PRINT X '2
Fixed bugs caused by using INC or DEC on a system variable. 1
1 SmileBoom, “Bug Fixes in Ver. 3.3.0 (April 26, 2016)” http://smilebasic.com/en/debug/archive/