Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Latest commit

 

History

History
67 lines (57 loc) · 1.85 KB

DEC.org

File metadata and controls

67 lines (57 loc) · 1.85 KB

Top | Up (Operators) | < Previous (INC) | Next (DIV) >

DEC

Subtracts a value from a variable.

Syntax

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.

Examples

X=13
DEC X
PRINT X '12
DEC X,10
PRINT X '2

Version Information

3.3.0

Fixed bugs caused by using INC or DEC on a system variable. 1

References

1 SmileBoom, “Bug Fixes in Ver. 3.3.0 (April 26, 2016)” http://smilebasic.com/en/debug/archive/


Top | Up (Operators) | < Previous (INC) | Next (DIV) >